summaryrefslogtreecommitdiffstats
path: root/Lib
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)
commitec9d547edde95783b170cec799e110839a684085 (patch)
tree4885a931d7b1a25d02b0eddf57588b97064e3af1 /Lib
parent8a4448c8bb5aabbe3b4d167ba568687d197aaa1a (diff)
downloadcpython-ec9d547edde95783b170cec799e110839a684085.zip
cpython-ec9d547edde95783b170cec799e110839a684085.tar.gz
cpython-ec9d547edde95783b170cec799e110839a684085.tar.bz2
allow test to work on implementations not using ref-counting (closes #22265)
Diffstat (limited to 'Lib')
-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 1bf6c53..5da4a6f 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -808,6 +808,7 @@ class TestBasicOps(unittest.TestCase):
it = islice(it, 1)
self.assertIsNotNone(wr())
list(it) # exhaust the iterator
+ test_support.gc_collect()
self.assertIsNone(wr())
def test_takewhile(self):