summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-20 23:26:23 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-20 23:26:23 +0200
commit459900e1498b92f15dd3d58c893ee5d345fe88b3 (patch)
treeeb6dac4fb518ab6ccdc37774784b945aa2f46475
parent997d62028e3a97b157df76aa0169286156bd4252 (diff)
downloadcpython-459900e1498b92f15dd3d58c893ee5d345fe88b3.tar.gz
Close #19297: fix resource warnings in test_asyncio. Patch by Vajrasky Kok.
-rw-r--r--Lib/asyncio/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py
index d650c4476a..c278dd1773 100644
--- a/Lib/asyncio/test_utils.py
+++ b/Lib/asyncio/test_utils.py
@@ -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()