-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Coverage erroneously reports partial coverage inside except block. #212
Comments
This is test.py:
|
When I try this with coverage 3.7.1, it tells me that the "q = 1" line is partial because it never branches to the "except" line before it, which makes no sense. I'm working on a re-implementation of branch coverage which reports 100% for this file, so it will be fixed when that code is merged in. |
This will be fixed when the ast-branch is merged. |
This is fixed in 44719bd (bb), which will be 4.1 |
Originally reported by CleanCut (Bitbucket: CleanCut, GitHub: CleanCut)
Coverage.py, version 3.5.3
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11)
OS X 10.8
I have reproduced a situation where coverage erroneously reports a line as only being partially covered.
Please see the attache 'test.py' which you can use to duplicate the problem. The comments inside of test.py also discuss the issue in more depth.
The text was updated successfully, but these errors were encountered: