diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-02-01 09:10:47 -0800 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 09:10:47 -0800 |
| commit | 382b3d00ed9a2f31dcedbf65ce82cbada9b6dbdf (patch) | |
| tree | b4c9f371e129d07f07e08d83bfe99f87e6c1d072 /tests/basics | |
| parent | d71cd86dc1b1a95ab1cbe82e4b205407a5fa1199 (diff) | |
| parent | 6472dea1468e895c21aad98f75e85c67e43f716e (diff) | |
Merge pull request #251 from pfalcon/return_unwind
Add exception stack unwind support for RETURN_VALUE.
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/try-finally-return.py | 7 |
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 000000000..053fd4b13 --- /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()) |
