]> granicus.if.org Git - python/commitdiff
Try to prevent the alarm going off early in tearDown
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Mar 2008 06:16:04 +0000 (06:16 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Mar 2008 06:16:04 +0000 (06:16 +0000)
Lib/test/test_socketserver.py

index bd25f57f7551af785bc122850e52faa8bb328667..457d23117c1f9c500a3e52e29055fb11d601bf14 100644 (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: