Something wrong about branch coverage of class statements · Issue #62 · nedbat/coveragepy (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@nedbat

Description

@nedbat

Originally reported by Jean-Paul Calderone (Bitbucket: exarkun, GitHub: exarkun)


Consider the attached module. Using "coverage run --branch" on it and then "coverage html" produces a coverage report which indicates two partially covered lines.

I would expect that all three methods in the example would be treated the same (ie, either that all three would be marked partially covered, or all three would be marked completely covered).