[Python-checkins] cpython (merge 3.2 -> 3.3): 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:16 CEST 2012


http://hg.python.org/cpython/rev/7b71c093ae81
changeset:   79288:7b71c093ae81
branch:      3.3
parent:      79283:c3d90fb70247
parent:      79287:247d3e3c08ca
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Sep 30 01:08:55 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