Commit 42f58e7c authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fix

parent 72d0222b
......@@ -180,7 +180,7 @@ def iterkeys(dict d):
def iterkeys_argerror(dict d):
"""
>>> try: iterkeys_argerror(d)
... except TypeError: pass
... except (TypeError, AttributeError): pass
"""
for k in d.iterkeys(1):
print k
......@@ -220,7 +220,7 @@ def optimistic_iterkeys(d):
def optimistic_iterkeys_argerror(d):
"""
>>> try: optimistic_iterkeys_argerror(d)
... except TypeError: pass
... except (TypeError, AttributeError): pass
"""
for k in d.iterkeys(1):
print k
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment