summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index cd3aafff..88442049 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -682,6 +682,21 @@ class ExceptionArcTest(CoverageTest):
arcz_unpredicted="45 AB",
)
+ def test_return_finally(self):
+ self.check_coverage("""\
+ a = [1]
+ def func():
+ try:
+ return 10
+ finally:
+ a.append(6)
+
+ assert func() == 10
+ assert a == [1, 6]
+ """,
+ arcz=".1 12 28 89 9. .3 34 46 6-2",
+ )
+
class YieldTest(CoverageTest):
"""Arc tests for generators."""