Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-116112: Fix ResourceWarning in test_asyncio.test_stream
Co-authored-by: @CendioOssman
  • Loading branch information
sobolevn committed Mar 5, 2024
commit a3052035485bd2836e40f5284657ca105382cbfd
1 change: 1 addition & 0 deletions Lib/test/test_asyncio/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, [])
Expand Down