From 462c1f0403324efc27c11435da12b8d16f5387de Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 8 Sep 2021 18:08:57 +0300 Subject: [3.10] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) (GH-28027) (cherry picked from commit 2a8127cafe1d196f858a3ecabf5f1df3eebf9a12) Co-authored-by: Serhiy Storchaka --- Lib/test/test_asyncio/test_tasks.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_asyncio/test_tasks.py') diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index f7345c5c40..9498c7251f 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -2690,6 +2690,7 @@ class BaseTaskTests: self.new_task(self.loop, gen) finally: gen.close() + gc.collect() # For PyPy or other GCs. self.assertTrue(m_log.error.called) message = m_log.error.call_args[0][0] -- cgit v1.2.1