summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-08-24 23:07:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-08-24 23:07:28 (GMT)
commit8e16351545947fa1d083f8ea02b7b89415f71bc6 (patch)
tree0a2fc5d2f9f635e527c85532376d559e4bb5acc0 /Lib/test
parent18bb702182e6962c1b5e4eef96b65b8996d3ec8a (diff)
downloadcpython-8e16351545947fa1d083f8ea02b7b89415f71bc6.zip
cpython-8e16351545947fa1d083f8ea02b7b89415f71bc6.tar.gz
cpython-8e16351545947fa1d083f8ea02b7b89415f71bc6.tar.bz2
allow test to work on implementations not using ref-counting (closes #22265)
Diffstat (limited to 'Lib/test')
-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 fea6816..5f33d39 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -1100,6 +1100,7 @@ class TestBasicOps(unittest.TestCase):
it = islice(it, 1)
self.assertIsNotNone(wr())
list(it) # exhaust the iterator
+ support.gc_collect()
self.assertIsNone(wr())
def test_takewhile(self):