From 8e16351545947fa1d083f8ea02b7b89415f71bc6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 24 Aug 2014 18:07:28 -0500 Subject: [PATCH] allow test to work on implementations not using ref-counting (closes #22265) --- Lib/test/test_itertools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index fea68163b3a..5f33d3975ed 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):