Failure of encoding detection on Python2 causes hard to debug termination

Issue #331 resolved
Former user created an issue

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

Comments (4)

  1. Ned Batchelder repo owner
    • changed status to open

    The author contacted me on IRC to say, "the problem was mostly that the error left no way to figure what file it broke on."

  2. Log in to comment