Skip to content
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

Context manager confuses branch miss detector when de-dent is close to finally statement #473

Closed
nedbat opened this issue Feb 2, 2016 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Feb 2, 2016

Originally reported by bossylobster (Bitbucket: bossylobster, GitHub: Unknown)


Running the code to reproduce gives:

$ coverage run --branch repro.py
{}
$ coverage report -m
Name       Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------
repro.py      16      0      2      1    94%   17->20

screen_shot_001.png


Maybe I am misunderstanding which branches should occur?


@nedbat
Copy link
Owner Author

nedbat commented Feb 2, 2016

Duplicate of #146.

@nedbat
Copy link
Owner Author

nedbat commented Feb 2, 2016

This is fixed in 4.1beta.

@nedbat
Copy link
Owner Author

nedbat commented Feb 2, 2016

Original comment by bossylobster (Bitbucket: bossylobster, GitHub: Unknown)


My bad. I only looked in open issues for dupes. Thanks for the quick response!

@nedbat nedbat closed this as completed Feb 2, 2016
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant