Kaydet (Commit) 8e163515 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

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

üst 18bb7021
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment