summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/try-finally-return.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/try-finally-return.py b/tests/basics/try-finally-return.py
new file mode 100644
index 0000000000..053fd4b134
--- /dev/null
+++ b/tests/basics/try-finally-return.py
@@ -0,0 +1,7 @@
+def func1():
+ try:
+ return "it worked"
+ finally:
+ print("finally 1")
+
+print(func1())