mirror of
https://github.com/python/cpython.git
synced 2026-02-05 09:25:35 +00:00
Try to prevent the alarm going off early in tearDown
This commit is contained in:
parent
0d2192be8b
commit
acdb6fb2a5
1 changed files with 1 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ def setUp(self):
|
|||
self.test_files = []
|
||||
|
||||
def tearDown(self):
|
||||
signal_alarm(0) # Didn't deadlock.
|
||||
reap_children()
|
||||
|
||||
for fn in self.test_files:
|
||||
|
|
@ -78,7 +79,6 @@ def tearDown(self):
|
|||
except os.error:
|
||||
pass
|
||||
self.test_files[:] = []
|
||||
signal_alarm(0) # Didn't deadlock.
|
||||
|
||||
def pickaddr(self, proto):
|
||||
if proto == socket.AF_INET:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue