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,6 +149,7 @@ class PyPIServer(threading.Thread):
def stop(self):
"""self shutdown is not supported for python < 2.6"""
self._run = False
if self.is_alive():
self.join()
self.server.server_close()

View File

@ -233,6 +233,7 @@ class SimpleCrawlerTestCase(TempdirManager,
self.assertEqual(4, len(crawler.get_releases("foo")))
finally:
mirror.stop()
server.stop()
def test_simple_link_matcher(self):
# Test that the simple link matcher finds the right links"""