Wait for a delay before reaping children -- this should fix the

test_socketserver failures on several platforms.
This commit is contained in:
Georg Brandl 2008-02-03 00:04:50 +00:00
parent cafb710711
commit 461ed872e2
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ class SocketServerTest(unittest.TestCase):
self.test_files = []
def tearDown(self):
time.sleep(DELAY)
reap_children()
for fn in self.test_files:
@ -209,7 +210,7 @@ class SocketServerTest(unittest.TestCase):
MyStreamHandler, self.stream_examine)
def test_UDPServers(self):
# Test SocketServer.UPDServer
# Test SocketServer.UDPServer
servers = [SocketServer.UDPServer,
SocketServer.ThreadingUDPServer]
if HAVE_FORKING: