[Python-checkins] r75839 - in python/branches/py3k: Lib/test/test_httpservers.py
antoine.pitrou
python-checkins at python.org
Tue Oct 27 19:52:30 CET 2009
Author: antoine.pitrou
Date: Tue Oct 27 19:52:30 2009
New Revision: 75839
Log:
Merged revisions 75838 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75838 | antoine.pitrou | 2009-10-27 19:50:52 +0100 (mar., 27 oct. 2009) | 3 lines
(Hopefully) suppress transient refleaks in test_httpservers.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_httpservers.py
Modified: python/branches/py3k/Lib/test/test_httpservers.py
==============================================================================
--- python/branches/py3k/Lib/test/test_httpservers.py (original)
+++ python/branches/py3k/Lib/test/test_httpservers.py Tue Oct 27 19:52:30 2009
@@ -51,6 +51,7 @@
class BaseTestCase(unittest.TestCase):
def setUp(self):
+ self._threads = support.threading_setup()
os.environ = support.EnvironmentVarGuard()
self.lock = threading.Lock()
self.thread = TestServerThread(self, self.request_handler)
@@ -61,6 +62,7 @@
self.lock.release()
self.thread.stop()
os.environ.__exit__()
+ support.threading_cleanup(*self._threads)
def request(self, uri, method='GET', body=None, headers={}):
self.connection = http.client.HTTPConnection('localhost', self.PORT)
More information about the Python-checkins
mailing list