coveragepy
coveragepy copied to clipboard
Incorrect missed-branch message with return/finally/if
Describe the bug In the scriv coverage results, I see this:
The message says the return on 165 wasn't executed, but it is clearly marked as executed. The message should say, "Line 167 didn't return because the condition on 167 was always true."
To Reproduce
- Check out the scriv repo: https://github.com/nedbat/scriv
- Install the requirements:
make requirements
- Run tox:
tox
- Open the HTML report in htmlcov/index.html, navigate to the end of src/scriv/format_rst.py