summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_arcs.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 22446f6a..db756291 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -161,6 +161,23 @@ class SimpleArcTest(CoverageTest):
arcz_missing=arcz_missing,
)
+ def test_bug_1184(self):
+ self.check_coverage("""\
+ def foo(x):
+ if x:
+ try:
+ 1/(x - 1)
+ except ZeroDivisionError:
+ pass
+ return x # 7
+
+ for i in range(3): # 9
+ foo(i)
+ """,
+ arcz=".1 19 9-1 .2 23 27 34 47 56 67 7-1 9A A9",
+ arcz_unpredicted="45",
+ )
+
class WithTest(CoverageTest):
"""Arc-measuring tests involving context managers."""