Skip to content

Commit 3524d56

Browse files
committed
test: add a test for #1184.
1 parent ab48a7b commit 3524d56

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test_arcs.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,23 @@ def test_what_is_the_sound_of_no_lines_clapping(self):
161161
arcz_missing=arcz_missing,
162162
)
163163

164+
def test_bug_1184(self):
165+
self.check_coverage("""\
166+
def foo(x):
167+
if x:
168+
try:
169+
1/(x - 1)
170+
except ZeroDivisionError:
171+
pass
172+
return x # 7
173+
174+
for i in range(3): # 9
175+
foo(i)
176+
""",
177+
arcz=".1 19 9-1 .2 23 27 34 47 56 67 7-1 9A A9",
178+
arcz_unpredicted="45",
179+
)
180+
164181

165182
class WithTest(CoverageTest):
166183
"""Arc-measuring tests involving context managers."""

0 commit comments

Comments
 (0)