Failure of encoding detection on Python2 causes hard to debug termination · Issue #331 · nedbat/coveragepy (original) (raw)
Originally reported by Anonymous
in the case that someone moves the default coding line down a few lines,
on python2 ascii is detected instead of utf-8, therefore coverage fails flat when decoding
i was only able to find the problem by adding a comment in coverages html reporting at the end of the html_file method right before the html = html.decode(encoding)
line