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

finally clauses aren't treated properly in branch coverage? #92

Closed
nedbat opened this issue Oct 2, 2010 · 2 comments
Closed

finally clauses aren't treated properly in branch coverage? #92

nedbat opened this issue Oct 2, 2010 · 2 comments
Labels
branch bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Oct 2, 2010

Brodie Rao measured cram: http://bitheap.org/cram/htmlcov/cram.html

The finally clauses are marked as partial, because they exited normally, rather than with exceptions. And the missed exit is marked as the loop exit rather than the function exit, why is that?


@nedbat
Copy link
Owner Author

nedbat commented Jan 12, 2013

A simpler test case:

                for i in range(5):
                    try:
                        j = 3
                    finally:
                        f = 5
                    g = 6
                h = 7

@nedbat
Copy link
Owner Author

nedbat commented Jun 9, 2013

Fixed in changeset 2c5fb3a8b81c (bb).

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

No branches or pull requests

1 participant