From: Benjamin Peterson Date: Sun, 24 Aug 2014 23:07:28 +0000 (-0500) Subject: allow test to work on implementations not using ref-counting (closes #22265) X-Git-Tag: v3.4.2rc1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e16351545947fa1d083f8ea02b7b89415f71bc6;p=python allow test to work on implementations not using ref-counting (closes #22265) --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index fea68163b3..5f33d3975e 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):