]> granicus.if.org Git - python/commitdiff
Reap processes at test end to avoid false positives in reference leak detection.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Mar 2012 12:42:35 +0000 (13:42 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Mar 2012 12:42:35 +0000 (13:42 +0100)
Lib/test/test_multiprocessing.py

index 35d85d75e52e32fed339f521f30e2d9a08afd11f..07843f98b854529712a064f8be6a66f22875f390 100644 (file)
@@ -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()