mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
allow test to work on implementations not using ref-counting (closes #22265)
This commit is contained in:
parent
18bb702182
commit
8e16351545
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue