Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
6caca325
Commit
6caca325
authored
Oct 17, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Add test to print full KeyError exc from failed dict lookup.
parent
2750a7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/basics/dict1.py
tests/basics/dict1.py
+2
-2
No files found.
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
Markdown
is supported
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