Kaydet (Commit) acdb6fb2 authored tarafından Neal Norwitz's avatar Neal Norwitz

Try to prevent the alarm going off early in tearDown

üst 0d2192be
...@@ -70,6 +70,7 @@ class SocketServerTest(unittest.TestCase): ...@@ -70,6 +70,7 @@ class SocketServerTest(unittest.TestCase):
self.test_files = [] self.test_files = []
def tearDown(self): def tearDown(self):
signal_alarm(0) # Didn't deadlock.
reap_children() reap_children()
for fn in self.test_files: for fn in self.test_files:
...@@ -78,7 +79,6 @@ class SocketServerTest(unittest.TestCase): ...@@ -78,7 +79,6 @@ class SocketServerTest(unittest.TestCase):
except os.error: except os.error:
pass pass
self.test_files[:] = [] self.test_files[:] = []
signal_alarm(0) # Didn't deadlock.
def pickaddr(self, proto): def pickaddr(self, proto):
if proto == socket.AF_INET: if proto == socket.AF_INET:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment