Commit f6a8e84a authored by Damien George's avatar Damien George
Browse files

tests/basics: Add test for break from within try within a for-loop.

parent 675d1c9c
......@@ -33,3 +33,11 @@ for i in range(4):
print('here')
finally:
print('finnaly 3')
# break from within try-finally, within for-loop
for i in [1]:
try:
print(i)
break
finally:
print('finally 4')
Supports Markdown
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