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
9fce77c9
Commit
9fce77c9
authored
Feb 06, 2014
by
Paul Sokolovsky
Browse files
Add more finally + break/continue testcases.
parent
3c95ba7e
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/basics/try-finally-
break
.py
→
tests/basics/try-finally-
loops
.py
View file @
9fce77c9
# Test various loop types, some may be implemented/optimized differently
while
True
:
try
:
break
finally
:
print
(
'finally 1'
)
for
i
in
[
1
,
5
,
10
]:
try
:
continue
finally
:
print
(
'finally 2'
)
for
i
in
range
(
3
):
try
:
continue
finally
:
print
(
'finally 3'
)
# Multi-level
for
i
in
range
(
4
):
print
(
i
)
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