kopia lustrzana https://github.com/micropython/micropython
tests: Add test to print full KeyError exc from failed dict lookup.
rodzic
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:
|
||||
|
|
Ładowanie…
Reference in New Issue