diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 919d543b0329e9..53eb5c7a699ff0 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -287,6 +287,7 @@ async def coro2(): ): self.assertRaises( RuntimeError, self.loop.run_until_complete, coro2()) + support.gc_collect() # Note: because of the default Windows timing granularity of # 15.6 msec, we use fairly long sleep times here (~100 msec).