Closed
Description
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.