You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test case show missing branch coverage despite every branch being covered, AFAICT. The problem seems to be related to the continue statement and the nested if statements.
AFAICT, this is not a duplicate of #496 but may have a similar root cause.
def test_coverage_bug():
did_something = False
did_another_thing = False
did_this_thing_first = False
for i in range(5):
if i > 0:
if i < 5:
if i % 2 == 0:
did_something = True
else:
did_another_thing = True
continue
did_this_thing_first = True
assert did_something
assert did_another_thing
assert did_this_thing_first
The text was updated successfully, but these errors were encountered:
This test case show missing branch coverage despite every branch being covered, AFAICT. The problem seems to be related to the
continue
statement and the nestedif
statements.AFAICT, this is not a duplicate of #496 but may have a similar root cause.
The text was updated successfully, but these errors were encountered: