Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
010043ca
Commit
010043ca
authored
Mar 30, 2014
by
Damien George
Browse files
Add "tracing" to try-reraise2.py test. It now fails.
parent
f8ff700d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/try-reraise2.py
View file @
010043ca
...
@@ -4,16 +4,25 @@ def f():
...
@@ -4,16 +4,25 @@ def f():
raise
ValueError
(
"val"
,
3
)
raise
ValueError
(
"val"
,
3
)
except
:
except
:
try
:
try
:
print
(
1
)
raise
TypeError
raise
TypeError
except
:
except
:
print
(
2
)
try
:
try
:
print
(
3
)
try
:
try
:
print
(
4
)
raise
AttributeError
raise
AttributeError
except
:
except
:
print
(
5
)
pass
pass
print
(
6
)
raise
raise
except
TypeError
:
except
TypeError
:
print
(
7
)
pass
pass
print
(
8
)
print
(
9
)
# This should raise original ValueError, not the most recently occurred AttributeError
# This should raise original ValueError, not the most recently occurred AttributeError
raise
raise
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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