allow test to work on implementations not using ref-counting (closes #22265)
This commit is contained in:
parent
18bb702182
commit
8e16351545
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue