]> granicus.if.org Git - python/commitdiff
Reap children before the test starts so hopefully SocketServer
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 06:29:57 +0000 (06:29 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 06:29:57 +0000 (06:29 +0000)
won't find any old children left around which causes an exception
in collect_children() and the test to fail.

Lib/test/test_socketserver.py

index bfcdf98a5cae748210c8a4aa5efedb2bedb9d1b3..dd094489da06d91f78e2d761671d48bc9ed44b13 100644 (file)
@@ -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: