Skip to content

Commit

Permalink
pythongh-111644: Fix asyncio test_unhandled_exceptions()
Browse files Browse the repository at this point in the history
Fix test_unhandled_exceptions() of test_asyncio.test_streams: break
explicitly a reference cycle.
  • Loading branch information
vstinner committed Nov 3, 2023
1 parent f21b230 commit a755131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_asyncio/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ async def handle_echo(reader, writer):

self.assertEqual(messages[0]['message'],
'Unhandled exception in client_connected_cb')
# Break explicitly reference cycle
messages = None


if __name__ == '__main__':
Expand Down

0 comments on commit a755131

Please sign in to comment.