Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6caca325
Commit
6caca325
authored
Oct 17, 2016
by
Damien George
Browse files
tests: Add test to print full KeyError exc from failed dict lookup.
parent
2750a7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/dict1.py
View file @
6caca325
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment