From: Neal Norwitz Date: Sun, 26 Aug 2007 06:29:57 +0000 (+0000) Subject: Reap children before the test starts so hopefully SocketServer X-Git-Tag: v2.6a1~1417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=482043aed6988c7f32810099e4286bc1e6ab02b1;p=python Reap children before the test starts so hopefully SocketServer won't find any old children left around which causes an exception in collect_children() and the test to fail. --- diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index bfcdf98a5c..dd094489da 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -212,6 +212,7 @@ def test_main(): # If the import lock is held, the threads will hang. raise TestSkipped("can't run when import lock is held") + reap_children() try: testall() finally: