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 brett.cannon
Recipients LorenzMende, barry, brett.cannon, ncoghlan, v2m, vstinner
Date 2018-09-01.17:42:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535823723.49.0.56676864532.issue34200@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe I'm missing something, but who is racing whom in this case? All the examples people have shared are simply running the test module directly which means there's no parallelism in the execution of the test runner with other tests. Does unittest.main() randomize the order and it's a sequence issue more than a concurrency issue?

For instance, Lorenz may have tracked this issue down to cleanup, but each of those test methods should have been run sequentially, meaning that the tearDown() method would have been called after every execution of a test with no concurrency going on.

And the temp modules for the tests are put in a directory created using tempfile.mkdtemp() so that should prevent test methods stomping on each other.

Perhaps we need to improve the failure messages at this point in the tests to get more clues as to the state of things when the failures occur?
History
Date User Action Args
2018-09-01 17:42:03brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, vstinner, LorenzMende, v2m
2018-09-01 17:42:03brett.cannonsetmessageid: <1535823723.49.0.56676864532.issue34200@psf.upfronthosting.co.za>
2018-09-01 17:42:03brett.cannonlinkissue34200 messages
2018-09-01 17:42:03brett.cannoncreate