bpo-30357 each test in test_thread waits until all spawned threads finish by grzgrzgrz3 · Pull Request #1583 · python/cpython (original) (raw)

I was unable to reproduce this issue on the master branch. However still it's worth to clean up tests correctly.

Well, we are talking about race conditions. It's really hard to reproduce them. It's likely that the test order changed between Python 2.7 and master, but it doesn't mean that master is bugfix. Just that the bug is less likely :-)

I will create new PR for master branch.

Sorry, I wanted to fix quickly the bug, so I pushed a fix based on your work on the master branch and added your name ;-) Can you please try to backport the fix to 2.7? Try to cherry-pick the change from master (or complete this change).