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

Python3.5: Partial branch marked as fully covered #422

Closed
nedbat opened this issue Oct 4, 2015 · 2 comments
Closed

Python3.5: Partial branch marked as fully covered #422

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

Comments

@nedbat
Copy link
Owner

nedbat commented Oct 4, 2015

Originally reported by Florian Bruhin (Bitbucket: The-Compiler, GitHub: The-Compiler)


When having a module.py:

def func2(arg):
    if arg:
        pass

def func():
    func2(True)

if __name__ == '__main__':  # pragma: no branch
    func()

and a .coveragerc:

[run]
branch=True

and running rm -r .coverage htmlcov && coverage run module.py && coverage html that correctly marks line 2 as partially covered with a Python 3.4 coverage, but marks it as fully covered with Python 3.5.


@nedbat
Copy link
Owner Author

nedbat commented Jan 2, 2016

This will be fixed when the ast-branch is merged.

@nedbat
Copy link
Owner Author

nedbat commented Jan 8, 2016

This is fixed in 44719bd (bb), which will be 4.1

@nedbat nedbat closed this as completed Jan 8, 2016
@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