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

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

üst 8a4448c8
...@@ -808,6 +808,7 @@ class TestBasicOps(unittest.TestCase): ...@@ -808,6 +808,7 @@ class TestBasicOps(unittest.TestCase):
it = islice(it, 1) it = islice(it, 1)
self.assertIsNotNone(wr()) self.assertIsNotNone(wr())
list(it) # exhaust the iterator list(it) # exhaust the iterator
test_support.gc_collect()
self.assertIsNone(wr()) self.assertIsNone(wr())
def test_takewhile(self): 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