Skip to content
Snippets Groups Projects
Commit 9fce77c9 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add more finally + break/continue testcases.

parent 3c95ba7e
Branches
No related tags found
No related merge requests found
# 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): for i in range(4):
print(i) print(i)
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment