From ec9d547edde95783b170cec799e110839a684085 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 1bf6c5335e..5da4a6f312 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): -- 2.50.1