https://github.com/python/cpython/commit/990a5f17d05214abe8aafedf8e6418a0fb5ffd50
commit: 990a5f17d05214abe8aafedf8e6418a0fb5ffd50
branch: main
author: Nikita Sobolev <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-03-06T01:08:18+03:00
summary:
gh-116112: Fix `ResourceWarning` in `test_asyncio.test_stream` (#116371)
Co-authored-by: @CendioOssman
files:
M Lib/test/test_asyncio/test_streams.py
diff --git a/Lib/test/test_asyncio/test_streams.py
b/Lib/test/test_asyncio/test_streams.py
index bf123ebf9bd158..2cf48538d5d30d 100644
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -1188,6 +1188,7 @@ async def handle_echo(reader, writer):
def test_unhandled_cancel(self):
async def handle_echo(reader, writer):
+ writer.close()
asyncio.current_task().cancel()
messages = self._basetest_unhandled_exceptions(handle_echo)
self.assertEqual(messages, [])
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]