mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests/basics: Add test for break from within try within a for-loop.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user