Skip to content
Snippets Groups Projects
Commit 6caca325 authored by Damien George's avatar Damien George
Browse files

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

parent 2750a7b3
No related branches found
No related tags found
No related merge requests found
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment