]> 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 1bf6c5335eb7791833ca009b7f9749ee1afc2482..5da4a6f3121b61e759904f0c990decc1c5745267 100644 (file)
@@ -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):