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

This commit is contained in:
Damien George 2016-08-15 21:28:41 +10:00
parent 675d1c9c60
commit f6a8e84a25
1 changed files with 8 additions and 0 deletions

View File

@ -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')