Kaydet (Commit) 86c54f09 authored tarafından Ezio Melotti's avatar Ezio Melotti

Fix several ResourceWarnings in test_packaging.

üst ba8ef7a8
...@@ -78,7 +78,12 @@ class PyPIServerTestCase(unittest.TestCase): ...@@ -78,7 +78,12 @@ class PyPIServerTestCase(unittest.TestCase):
super(PyPIServerTestCase, self).setUp() super(PyPIServerTestCase, self).setUp()
self.pypi = PyPIServer() self.pypi = PyPIServer()
self.pypi.start() 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): class PyPIServer(threading.Thread):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment