[Python-checkins] r61782 - python/trunk/Lib/test/test_socketserver.py

neal.norwitz python-checkins at python.org
Sun Mar 23 07:16:04 CET 2008


Author: neal.norwitz
Date: Sun Mar 23 07:16:04 2008
New Revision: 61782

Modified:
   python/trunk/Lib/test/test_socketserver.py
Log:
Try to prevent the alarm going off early in tearDown

Modified: python/trunk/Lib/test/test_socketserver.py
==============================================================================
--- python/trunk/Lib/test/test_socketserver.py	(original)
+++ python/trunk/Lib/test/test_socketserver.py	Sun Mar 23 07:16:04 2008
@@ -70,6 +70,7 @@
         self.test_files = []
 
     def tearDown(self):
+        signal_alarm(0)  # Didn't deadlock.
         reap_children()
 
         for fn in self.test_files:
@@ -78,7 +79,6 @@
             except os.error:
                 pass
         self.test_files[:] = []
-        signal_alarm(0)  # Didn't deadlock.
 
     def pickaddr(self, proto):
         if proto == socket.AF_INET:


More information about the Python-checkins mailing list