Confusing branching failure · Issue #493 · nedbat/coveragepy (original) (raw)

Originally reported by Joe Doherty (Bitbucket: docapotamus, GitHub: docapotamus)


Hello,

I have a strange issue with coverage since upgrading to 4.1

I am getting a branch failure which I know I have a test for. The file: https://codecov.io/gh/pjuu/pjuu/src/508aafc3f35814677fa6d29e555e8636efab0bb8/pjuu/lib/tokens.py

If I change the code and remove the else and add a print, the print shows. However I get a failure on the print saying it isn't covered.

Not sure if this is intended and I can't see any obvious as to why this would fail.

Thanks in advance.