Commit 9fce77c9 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add more finally + break/continue testcases.

parent 3c95ba7e
# 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment