Skip to content

Commit 990a5f1

Browse files
authored
gh-116112: Fix ResourceWarning in test_asyncio.test_stream (#116371)
Co-authored-by: @CendioOssman
1 parent e205c5c commit 990a5f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_asyncio/test_streams.py

+1
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ async def handle_echo(reader, writer):
11881188

11891189
def test_unhandled_cancel(self):
11901190
async def handle_echo(reader, writer):
1191+
writer.close()
11911192
asyncio.current_task().cancel()
11921193
messages = self._basetest_unhandled_exceptions(handle_echo)
11931194
self.assertEqual(messages, [])

0 commit comments

Comments
 (0)