mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #24359: Check for changed OrderedDict size during iteration.
This commit is contained in:
parent
d171975609
commit
b952ab43f2
3 changed files with 12 additions and 4 deletions
|
|
@ -1746,10 +1746,6 @@ class OrderedDictTests:
|
|||
self.assertEqual(list(reversed(od.items())), list(reversed(pairs)))
|
||||
|
||||
def test_detect_deletion_during_iteration(self):
|
||||
# XXX This test should also work under cOrderedDict.
|
||||
if self.module is c_coll:
|
||||
raise unittest.SkipTest("only valid for pure Python OrderedDict")
|
||||
|
||||
OrderedDict = self.module.OrderedDict
|
||||
od = OrderedDict.fromkeys('abc')
|
||||
it = iter(od)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue