]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109538: Avoid RuntimeError when StreamWriter is deleted with closed loop (#111983)
authorDPR <dpr-0xff@pm.me>
Wed, 15 Nov 2023 01:17:51 +0000 (09:17 +0800)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 01:17:51 +0000 (01:17 +0000)
commite0f512797596282bff63260f8102592aad37cdf1
treeb0d0065f668f65b07e03d63eb0a3b6065e5c6646
parentfe9db901b2446b047e537447ea5bad3d470b0f78
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>
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]