mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests: Add test to print full KeyError exc from failed dict lookup.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user