Fix another ResourceWarning in test_packaging.

This commit is contained in:
Ezio Melotti 2011-05-20 20:27:54 +03:00
parent 2ed7521e96
commit bb00976fbf
2 changed files with 3 additions and 1 deletions

View file

@ -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):