#10777: fix iteration over dict keys while mutating the dict.

This commit is contained in:
Georg Brandl 2010-12-28 10:38:33 +00:00
parent ff52f76019
commit 90b20675bd
3 changed files with 13 additions and 1 deletions

View file

@ -1841,6 +1841,15 @@ def check_issue6565():
"""
def check_issue10777():
"""
Registering a namespace twice caused a "dictionary changed size during
iteration" bug.
>>> ET.register_namespace('test10777', 'http://myuri/')
>>> ET.register_namespace('test10777', 'http://myuri/')
"""
# --------------------------------------------------------------------