Skip to content

Exception on unencodable (file)name #533

Closed
@nedbat

Description

@nedbat

Originally reported by Antoine Pitrou (Bitbucket: pitrou, GitHub: pitrou)


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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions