mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +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):
|
def stop(self):
|
||||||
"""self shutdown is not supported for python < 2.6"""
|
"""self shutdown is not supported for python < 2.6"""
|
||||||
self._run = False
|
self._run = False
|
||||||
self.join()
|
if self.is_alive():
|
||||||
|
self.join()
|
||||||
self.server.server_close()
|
self.server.server_close()
|
||||||
|
|
||||||
def get_next_response(self):
|
def get_next_response(self):
|
||||||
|
|
|
@ -233,6 +233,7 @@ class SimpleCrawlerTestCase(TempdirManager,
|
||||||
self.assertEqual(4, len(crawler.get_releases("foo")))
|
self.assertEqual(4, len(crawler.get_releases("foo")))
|
||||||
finally:
|
finally:
|
||||||
mirror.stop()
|
mirror.stop()
|
||||||
|
server.stop()
|
||||||
|
|
||||||
def test_simple_link_matcher(self):
|
def test_simple_link_matcher(self):
|
||||||
# Test that the simple link matcher finds the right links"""
|
# Test that the simple link matcher finds the right links"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue