Commit 3c95ba7e authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add additional testcase for finally/return.

parent e09ffa14
......@@ -5,3 +5,19 @@ def func1():
print("finally 1")
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())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment