Skip to content
Snippets Groups Projects
Commit 3c95ba7e authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add additional testcase for finally/return.

parent e09ffa14
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,19 @@ def func1(): ...@@ -5,3 +5,19 @@ def func1():
print("finally 1") print("finally 1")
print(func1()) print(func1())
def func2():
try:
return "it worked"
finally:
print("finally 2")
def func3():
try:
s = func2()
return s + ", did this work?"
finally:
print("finally 3")
print(func3())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment