Skip to content

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

Closed
@nedbat

Description

@nedbat

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    branchbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions