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.
This commit is contained in:
Neal Norwitz 2007-08-26 06:29:57 +00:00
parent 9a65c89ec0
commit 482043aed6

View file

@ -212,6 +212,7 @@ def test_main():
# If the import lock is held, the threads will hang. # If the import lock is held, the threads will hang.
raise TestSkipped("can't run when import lock is held") raise TestSkipped("can't run when import lock is held")
reap_children()
try: try:
testall() testall()
finally: finally: