tests: Add test to print full KeyError exc from failed dict lookup.
This commit is contained in:
parent
2750a7b38e
commit
6caca3259f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user