mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
6f6f4865d1
commit
5da7e7959e
2 changed files with 8 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue