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: v2.7.9rc1~271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec9d547edde95783b170cec799e110839a684085;p=thirdparty%2FPython%2Fcpython.git 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 1bf6c5335eb7..5da4a6f3121b 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):