[Python-checkins] cpython: Call reap_children() at the end of test_posix

antoine.pitrou python-checkins at python.org
Sun Mar 20 17:34:01 CET 2011


http://hg.python.org/cpython/rev/c70d252135da
changeset:   68757:c70d252135da
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Mar 20 17:33:57 2011 +0100
summary:
  Call reap_children() at the end of test_posix

files:
  Lib/test/test_posix.py

diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -780,7 +780,10 @@
 
 
 def test_main():
-    support.run_unittest(PosixTester, PosixGroupsTester)
+    try:
+        support.run_unittest(PosixTester, PosixGroupsTester)
+    finally:
+        support.reap_children()
 
 if __name__ == '__main__':
     test_main()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list