mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
This commit is contained in:
parent
93b5b33e65
commit
f727082b71
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ class BaseTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.thread.stop()
|
self.thread.stop()
|
||||||
|
self.thread = None
|
||||||
os.environ.__exit__()
|
os.environ.__exit__()
|
||||||
support.threading_cleanup(*self._threads)
|
support.threading_cleanup(*self._threads)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue