Brett Cannon <br...@python.org> added the comment:

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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to