Commit 6caca325 authored by Damien George's avatar Damien George

tests: Add test to print full KeyError exc from failed dict lookup.

parent 2750a7b3
......@@ -26,8 +26,8 @@ print({1:1} == {2:1})
# value not found
try:
{}[0]
except KeyError:
print('KeyError')
except KeyError as er:
print('KeyError', er, repr(er), er.args)
# unsupported unary op
try:
......
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