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
for i in ['a', 'b', 'c']:
if i == 'a':
print('d')
elif i == 'b':
print('e')
elif i == 'c':
print('f')
else: # pragma: no cover
raise ValueError('unhnadled')
continue
raise Exception('an exception')
What commands did you run?
python -m coverage run t.py
python -m coverage report -m
Expected behavior
I expect that the report only shows that line 13 is uncovered, but line 11 should be covered as it is the continue that prevents line 13 from running.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I have found that apparently coverage reports a continue statement as being uncovered even though it is run/executed.
To Reproduce
Expected behavior
I expect that the report only shows that line 13 is uncovered, but line 11 should be covered as it is the continue that prevents line 13 from running.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: