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

This commit is contained in:
Damien George 2016-10-17 12:01:18 +11:00
parent 2750a7b38e
commit 6caca3259f

View File

@ -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: