Commit bc82e78e authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 2a6bfe21
......@@ -9,6 +9,9 @@ TypeError
Traceback (most recent call last):
TypeError
>>> call_try_return_with_exception()
1
>>> def try_return_py():
... try:
... return 1
......@@ -18,6 +21,8 @@ TypeError
2
>>> try_return_cy()
2
>>> call_try_return_c()
2
>>> i=1
>>> for i in range(3):
......@@ -46,6 +51,24 @@ def try_return_cy():
finally:
return 2
cdef int try_return_c():
try:
return 1
finally:
return 2
def call_try_return_c():
return try_return_c()
cdef int try_return_with_exception():
try:
raise TypeError
finally:
return 1
def call_try_return_with_exception():
return try_return_with_exception()
def try_return_temp(a):
b = a+2
try:
......
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