[Python-checkins] cpython (merge 3.3 -> default): Speed up test_httpservers by avoiding a one-second cleanup wait after each test

antoine.pitrou python-checkins at python.org
Sun Sep 30 01:11:18 CEST 2012


http://hg.python.org/cpython/rev/1eb434a945bb
changeset:   79289:1eb434a945bb
parent:      79286:6e32db819b90
parent:      79288:7b71c093ae81
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Sep 30 01:09:59 2012 +0200
summary:
  Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.

files:
  Lib/test/test_httpservers.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -62,6 +62,7 @@
 
     def tearDown(self):
         self.thread.stop()
+        self.thread = None
         os.environ.__exit__()
         support.threading_cleanup(*self._threads)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list