mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Reap processes at test end to avoid false positives in reference leak detection.
This commit is contained in:
parent
de157cc5bc
commit
6c64cc1973
1 changed files with 2 additions and 0 deletions
|
@ -2508,6 +2508,7 @@ class TestWait(unittest.TestCase):
|
|||
w.close()
|
||||
readers.append(r)
|
||||
procs.append(p)
|
||||
self.addCleanup(p.join)
|
||||
|
||||
while readers:
|
||||
for r in wait(readers):
|
||||
|
@ -2549,6 +2550,7 @@ class TestWait(unittest.TestCase):
|
|||
p.daemon = True
|
||||
p.start()
|
||||
procs.append(p)
|
||||
self.addCleanup(p.join)
|
||||
|
||||
for i in range(4):
|
||||
r, _ = l.accept()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue