diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-27 18:52:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-27 18:52:30 (GMT) |
commit | 45ebeb8f24710cbc50c77806893df1a2e7593762 (patch) | |
tree | 82576595c1849493f0cc0afeb4bd55f2e67c336f | |
parent | 5ed353c293f29a778b891e9d57a8cfcf7af1668c (diff) | |
download | cpython-45ebeb8f24710cbc50c77806893df1a2e7593762.zip cpython-45ebeb8f24710cbc50c77806893df1a2e7593762.tar.gz cpython-45ebeb8f24710cbc50c77806893df1a2e7593762.tar.bz2 |
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.
........
-rw-r--r-- | Lib/test/test_httpservers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 9a3d204..93a6ded 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -51,6 +51,7 @@ class TestServerThread(threading.Thread): 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 @@ class BaseTestCase(unittest.TestCase): 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) |