tests/basics: Add test for break from within try within a for-loop.
This commit is contained in:
parent
675d1c9c60
commit
f6a8e84a25
@ -33,3 +33,11 @@ for i in range(4):
|
|||||||
print('here')
|
print('here')
|
||||||
finally:
|
finally:
|
||||||
print('finnaly 3')
|
print('finnaly 3')
|
||||||
|
|
||||||
|
# break from within try-finally, within for-loop
|
||||||
|
for i in [1]:
|
||||||
|
try:
|
||||||
|
print(i)
|
||||||
|
break
|
||||||
|
finally:
|
||||||
|
print('finally 4')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user