]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) ...
authorDPR <dpr-0xff@pm.me>
Thu, 16 Nov 2023 17:40:55 +0000 (01:40 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 17:40:55 +0000 (09:40 -0800)
commit2ef3676a5bb8fba531fb8237ce50c27ebe37fb96
tree62808eeca48555c4478f4dc3e0b34955c06836b8
parent3f2cdbe6668ae40e72a8a8f1530c860a776d0c62
[3.12] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) (#112142)

* [3.12] gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (GH-111983)

Issue a ResourceWarning instead.

(cherry picked from commit e0f512797596282bff63260f8102592aad37cdf1)
gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (#111983)

Issue a ResourceWarning instead.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit e0f512797596282bff63260f8102592aad37cdf1)

* Fix missing warnings import
Lib/asyncio/streams.py
Lib/test/test_asyncio/test_streams.py
Misc/NEWS.d/next/Library/2023-11-11-16-42-48.gh-issue-109538.cMG5ux.rst [new file with mode: 0644]