]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Close #19297: fix resource warnings in test_asyncio. Patch by Vajrasky Kok.
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 20 Oct 2013 21:26:23 +0000 (23:26 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 20 Oct 2013 21:26:23 +0000 (23:26 +0200)
Lib/asyncio/test_utils.py

index d650c4476a06bdc5e4b692e29cc82347b274bd2a..c278dd1773c25a4a0405abef4975c632a2e25436 100644 (file)
@@ -126,6 +126,7 @@ def run_test_server(*, host='127.0.0.1', port=0, use_ssl=False):
         yield httpd
     finally:
         httpd.shutdown()
+        httpd.server_close()
         server_thread.join()