mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix several ResourceWarnings in test_packaging.
This commit is contained in:
parent
ba8ef7a81d
commit
86c54f0955
1 changed files with 6 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue