diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/packaging/tests/pypi_server.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/packaging/tests/pypi_server.py b/Lib/packaging/tests/pypi_server.py index cc5fcca..1e4b012 100644 --- a/Lib/packaging/tests/pypi_server.py +++ b/Lib/packaging/tests/pypi_server.py @@ -78,7 +78,12 @@ class PyPIServerTestCase(unittest.TestCase): super(PyPIServerTestCase, self).setUp() self.pypi = PyPIServer() self.pypi.start() - self.addCleanup(self.pypi.stop) + + def tearDown(self): + super(PyPIServerTestCase, self).tearDown() + self.pypi.stop() + self.pypi.join() + self.pypi.server.server_close() class PyPIServer(threading.Thread): |