mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Fix another ResourceWarning in test_packaging.
This commit is contained in:
parent
2ed7521e96
commit
bb00976fbf
2 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,8 @@ class PyPIServer(threading.Thread):
|
|||
def stop(self):
|
||||
"""self shutdown is not supported for python < 2.6"""
|
||||
self._run = False
|
||||
self.join()
|
||||
if self.is_alive():
|
||||
self.join()
|
||||
self.server.server_close()
|
||||
|
||||
def get_next_response(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue