summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_asyncio/test_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 9746678..27781a2 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -258,8 +258,8 @@ class EventLoopTestsMixin:
if not self.loop.is_closed():
test_utils.run_briefly(self.loop)
- self.loop.close()
- gc.collect()
+ self.doCleanups()
+ support.gc_collect()
super().tearDown()
def test_run_until_complete_nesting(self):