Issue #18808 again: fix the after-fork logic for not-yet-started or already-stopped threads.

(AFAICT, in theory, we must reset all the locks, not just those in use)
This commit is contained in:
Antoine Pitrou 2013-09-08 13:19:06 +02:00
parent 6f6f4865d1
commit 5da7e7959e
2 changed files with 8 additions and 10 deletions

View file

@ -109,7 +109,7 @@ class ThreadTests(BaseTestCase):
if verbose:
print('waiting for all tasks to complete')
for t in threads:
t.join(NUMTASKS)
t.join()
self.assertTrue(not t.is_alive())
self.assertNotEqual(t.ident, 0)
self.assertFalse(t.ident is None)