From: Antoine Pitrou Date: Sun, 20 Mar 2011 16:33:57 +0000 (+0100) Subject: Call reap_children() at the end of test_posix X-Git-Tag: v3.3.0a1~2837 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68c9592d3306ea12d249ecdbc5ee837b10f3ea12;p=python Call reap_children() at the end of test_posix --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 5373292f0a..0e9ac75172 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -780,7 +780,10 @@ class PosixGroupsTester(unittest.TestCase): def test_main(): - support.run_unittest(PosixTester, PosixGroupsTester) + try: + support.run_unittest(PosixTester, PosixGroupsTester) + finally: + support.reap_children() if __name__ == '__main__': test_main()