This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients barry, maxking, r.david.murray, serhiy.storchaka, vstinner, xtreak
Date 2020-01-09.10:49:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578566977.6.0.643633342156.issue39029@roundup.psfhosted.org>
In-reply-to
Content
> You wrote "I guess the file is not really deleted in some cases." I think that this should be investigated first.

Sorry, I wanted to mean that as the test deletes the file and goes on to assert it's not present the other test that runs in parallel creates the same file in setup code. Thus I wanted to imply that during assertion and parallel test's setup code the directory is again created.

I tried printing os.getpid() and support.TESTFN values in the setup and they are the same for all the tests.


./python.exe -Wall -m test -R 4:4 -j 4 test_mailbox -m test_clean
0:00:00 load avg: 2.91 Run tests in parallel using 4 child processes
0:00:00 load avg: 2.91 [1/1/1] test_mailbox failed
os.getpid() = 27901
support.TESTFN = '@test_27901_tmp'
os.getpid() = 27901
support.TESTFN = '@test_27901_tmp'
beginning 8 repetitions
12345678
.test test_mailbox failed -- Traceback (most recent call last):
  File "/Users/kasingar/stuff/python/cpython/Lib/test/test_mailbox.py", line 740, in test_clean
    self.assertFalse(os.path.exists(foo_path))
AssertionError: True is not false

== Tests result: FAILURE ==

1 test failed:
    test_mailbox

Total duration: 789 ms
Tests result: FAILURE
History
Date User Action Args
2020-01-09 10:49:37xtreaksetrecipients: + xtreak, barry, vstinner, r.david.murray, serhiy.storchaka, maxking
2020-01-09 10:49:37xtreaksetmessageid: <1578566977.6.0.643633342156.issue39029@roundup.psfhosted.org>
2020-01-09 10:49:37xtreaklinkissue39029 messages
2020-01-09 10:49:36xtreakcreate