-
-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass or continue in else branch considered missing #497
Labels
duplicate
This issue or pull request already exists
Comments
It's a duplicate of #198, which is due to CPython optimizing away a jump to a jump. |
Duplicate of #198. |
I suppose it could go here: http://coverage.readthedocs.io/en/coverage-4.1/trouble.html though I wonder if you would have found that page when looking? |
nedbat
added
duplicate
This issue or pull request already exists
and removed
4.1
bug
Something isn't working
labels
Aug 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by Peter Inglesby (Bitbucket: inglesp, GitHub: inglesp)
I would expect the following code to have 100% coverage, but it doesn't -- the
continue
line is marked as missing.The same happens if the
continue
is changed topass
. The contents of theif
block is not important.This may be a duplicate of #493 or #496.
I'm using coverage 4.1, and have reproduced with Pythons 3.5.1 and 2.7.10.
The contents of
.coverage
is:The text was updated successfully, but these errors were encountered: