]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114914: Avoid keeping dead StreamWriter alive (#115661)
authorPierre Ossman (ThinLinc team) <ossman@cendio.se>
Wed, 28 Feb 2024 01:27:44 +0000 (02:27 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 01:27:44 +0000 (17:27 -0800)
commita355f60b032306651ca27bc53bbb82eb5106ff71
tree5d5b332d9ef8ce85501bdf350f06f9d7298388ac
parent686ec17f506cddd0b14a8aad5849c15ffc20ed46
gh-114914: Avoid keeping dead StreamWriter alive (#115661)

In some cases we might cause a StreamWriter to stay alive even when the
application has dropped all references to it. This prevents us from
doing automatical cleanup, and complaining that the StreamWriter wasn't
properly closed.

Fortunately, the extra reference was never actually used for anything so
we can just drop it.
Lib/asyncio/streams.py
Lib/test/test_asyncio/test_streams.py
Misc/NEWS.d/next/Library/2024-02-19-15-52-30.gh-issue-114914.M5-1d8.rst [new file with mode: 0644]