Try to prevent the alarm going off early in tearDown

This commit is contained in:
Neal Norwitz 2008-03-23 06:16:04 +00:00
parent 0d2192be8b
commit acdb6fb2a5
1 changed files with 1 additions and 1 deletions

View File

@ -70,6 +70,7 @@ class SocketServerTest(unittest.TestCase):
self.test_files = []
def tearDown(self):
signal_alarm(0) # Didn't deadlock.
reap_children()
for fn in self.test_files:
@ -78,7 +79,6 @@ class SocketServerTest(unittest.TestCase):
except os.error:
pass
self.test_files[:] = []
signal_alarm(0) # Didn't deadlock.
def pickaddr(self, proto):
if proto == socket.AF_INET: