[Python-checkins] cpython: Reap processes at test end to avoid false positives in reference leak detection.
antoine.pitrou
python-checkins at python.org
Tue Mar 6 13:50:04 CET 2012
http://hg.python.org/cpython/rev/7ee542192525
changeset: 75452:7ee542192525
parent: 75449:d916145b20c3
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Mar 06 13:42:35 2012 +0100
summary:
Reap processes at test end to avoid false positives in reference leak detection.
files:
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
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -2508,6 +2508,7 @@
w.close()
readers.append(r)
procs.append(p)
+ self.addCleanup(p.join)
while readers:
for r in wait(readers):
@@ -2549,6 +2550,7 @@
p.daemon = True
p.start()
procs.append(p)
+ self.addCleanup(p.join)
for i in range(4):
r, _ = l.accept()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list