summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2022-11-24 15:32:58 (GMT)
committerGitHub <noreply@github.com>2022-11-24 15:32:58 (GMT)
commit5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1 (patch)
treef650a356b90872045f7548b4f20928c79fbfe968 /Lib/test/test_asyncio/test_base_events.py
parent8dbe08eb7c807f484fe9870f5b7f5ae2881fd966 (diff)
downloadcpython-5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1.zip
cpython-5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1.tar.gz
cpython-5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1.tar.bz2
GH-79033: Fix asyncio.Server.wait_closed() (#98582)
It was a no-op when used as recommended (after close()). I had to debug one test (test__sock_sendfile_native_failure) -- the cleanup sequence for the test fixture was botched. Hopefully that's not a portend of problems in user code -- this has never worked so people may well be doing this wrong. :-( Co-authored-by: kumar aditya
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 2dcb20c..7421d18 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -2052,11 +2052,11 @@ class BaseLoopSockSendfileTests(test_utils.TestCase):
def cleanup():
server.close()
- self.run_loop(server.wait_closed())
sock.close()
if proto.transport is not None:
proto.transport.close()
self.run_loop(proto.wait_closed())
+ self.run_loop(server.wait_closed())
self.addCleanup(cleanup)