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