Exception on unencodable (file)name

Issue #533 resolved
Antoine Pitrou created an issue

Some code generators (e.g. Template engines) can produce fake module names. Recently a test in the Tornado test suite has started failing with a non-ascii fake module name and a C locale: https://travis-ci.org/tornadoweb/tornado/jobs/176023596#L1120

I would suggest that coverage.py catch UnicodeEncodeError at that point and consider the file as non-existing.

Comments (3)

  1. Log in to comment