]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-79033: Fix asyncio.Server.wait_closed() (#98582)
authorGuido van Rossum <guido@python.org>
Thu, 24 Nov 2022 15:32:58 +0000 (07:32 -0800)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2022 15:32:58 +0000 (08:32 -0700)
commit5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1
treef650a356b90872045f7548b4f20928c79fbfe968
parent8dbe08eb7c807f484fe9870f5b7f5ae2881fd966
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
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_server.py
Misc/NEWS.d/next/Library/2022-11-22-19-31-26.gh-issue-79033.MW6kHq.rst [new file with mode: 0644]