]> granicus.if.org Git - python/commitdiff
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 29 Sep 2012 23:05:30 +0000 (01:05 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 29 Sep 2012 23:05:30 +0000 (01:05 +0200)
Lib/test/test_httpservers.py

index d78ae9a6bf1ff21fb9095686966fabd98e6154e8..d9e406341004d1e17fa82a2e74571f3303f1bd69 100644 (file)
@@ -62,6 +62,7 @@ class BaseTestCase(unittest.TestCase):
 
     def tearDown(self):
         self.thread.stop()
+        self.thread = None
         os.environ.__exit__()
         support.threading_cleanup(*self._threads)