circuitpython/tests/basics/try_except_break.py
2021-05-03 14:01:18 -07:00

74 lines
1.3 KiB
Python

# test deep unwind via break from nested try-except (22 of them)
while True:
print(1)
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
try:
print(2)
break
print(3)
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
except:
pass
print(4)