mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #26494: Fixed crash on iterating exhausting iterators.
Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
This commit is contained in:
parent
13b3acd13e
commit
fbb1c5ee06
19 changed files with 94 additions and 24 deletions
|
@ -905,6 +905,10 @@ class TestSequence(seq_tests.CommonTest):
|
|||
# For now, bypass tests that require slicing
|
||||
pass
|
||||
|
||||
def test_free_after_iterating(self):
|
||||
# For now, bypass tests that require slicing
|
||||
self.skipTest("Exhausted deque iterator doesn't free a deque")
|
||||
|
||||
#==============================================================================
|
||||
|
||||
libreftest = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue