summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/try-finally-break.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/basics/try-finally-break.py b/tests/basics/try-finally-break.py
new file mode 100644
index 0000000000..af1704da95
--- /dev/null
+++ b/tests/basics/try-finally-break.py
@@ -0,0 +1,14 @@
+for i in range(4):
+ print(i)
+ try:
+ while True:
+ try:
+ try:
+ break
+ finally:
+ print('finally 1')
+ finally:
+ print('finally 2')
+ print('here')
+ finally:
+ print('finnaly 3')