diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-03-06 12:42:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-03-06 12:42:35 (GMT) |
commit | 6c64cc197309eb70593b5a5819ddc3eb859077ba (patch) | |
tree | d89177a206b22d5b7f528ae817b3245f4bde32b4 | |
parent | de157cc5bca49321345eea715d5837cd5e7ba1bb (diff) | |
download | cpython-6c64cc197309eb70593b5a5819ddc3eb859077ba.zip cpython-6c64cc197309eb70593b5a5819ddc3eb859077ba.tar.gz cpython-6c64cc197309eb70593b5a5819ddc3eb859077ba.tar.bz2 |
Reap processes at test end to avoid false positives in reference leak detection.
-rw-r--r-- | Lib/test/test_multiprocessing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 35d85d7..07843f9 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -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() |