]> granicus.if.org Git - python/commitdiff
allow test to work on implementations not using ref-counting (closes #22265)
authorBenjamin Peterson <benjamin@python.org>
Sun, 24 Aug 2014 23:07:28 +0000 (18:07 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 24 Aug 2014 23:07:28 +0000 (18:07 -0500)
Lib/test/test_itertools.py

index fea68163b3a51beb1669dbe2d7acb84d7b38d111..5f33d3975edf80200614ff6b37756c85826af322 100644 (file)
@@ -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):