Add new utility function, reap_children(), to test_support. This should

be called at the end of each test that spawns children (perhaps it
should be called from regrtest instead?).  This will hopefully prevent
some of the unexplained failures in the buildbots (hppa and alpha)
during tests that spawn children.  The problems were not reproducible.
There were many zombies that remained at the end of several tests.
In the worst case, this shouldn't cause any more problems,
though it may not help either.  Time will tell.
This commit is contained in:
Neal Norwitz 2006-06-29 04:10:08 +00:00
parent 10497c83ec
commit b15ac3169d
14 changed files with 58 additions and 8 deletions

View file

@ -1,7 +1,8 @@
# Test suite for SocketServer.py
from test import test_support
from test.test_support import verbose, verify, TESTFN, TestSkipped
from test.test_support import (verbose, verify, TESTFN, TestSkipped,
reap_children)
test_support.requires('network')
from SocketServer import *
@ -199,6 +200,7 @@ def test_main():
testall()
finally:
cleanup()
reap_children()
if __name__ == "__main__":
test_main()