allow test to work on implementations not using ref-counting (closes #22265)

This commit is contained in:
Benjamin Peterson 2014-08-24 18:07:28 -05:00
parent 18bb702182
commit 8e16351545
1 changed files with 1 additions and 0 deletions

View File

@ -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):