Skip to content

Commit a755131

Browse files
committed
gh-111644: Fix asyncio test_unhandled_exceptions()
Fix test_unhandled_exceptions() of test_asyncio.test_streams: break explicitly a reference cycle.
1 parent f21b230 commit a755131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_streams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,8 @@ async def handle_echo(reader, writer):
11241124

11251125
self.assertEqual(messages[0]['message'],
11261126
'Unhandled exception in client_connected_cb')
1127+
# Break explicitly reference cycle
1128+
messages = None
11271129

11281130

11291131
if __name__ == '__main__':

0 commit comments

Comments
 (0)