Python3.5: Partial branch marked as fully covered

Issue #422 resolved
Florian Bruhin
created an issue

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.

Comments (2)

  1. Log in to comment