summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-08 15:08:57 (GMT)
committerGitHub <noreply@github.com>2021-09-08 15:08:57 (GMT)
commit462c1f0403324efc27c11435da12b8d16f5387de (patch)
treee2e37d822e9b777deed2b86e00467a8e5216055f /Lib/test/test_itertools.py
parentc081649e6df55203178a44d16bc4c96f9fa2c6a4 (diff)
downloadcpython-462c1f0403324efc27c11435da12b8d16f5387de.zip
cpython-462c1f0403324efc27c11435da12b8d16f5387de.tar.gz
cpython-462c1f0403324efc27c11435da12b8d16f5387de.tar.bz2
[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 <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 6f8f876..aa81076 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -1442,6 +1442,7 @@ class TestBasicOps(unittest.TestCase):
p = weakref.proxy(a)
self.assertEqual(getattr(p, '__class__'), type(b))
del a
+ support.gc_collect() # For PyPy or other GCs.
self.assertRaises(ReferenceError, getattr, p, '__class__')
ans = list('abc')