This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2010-10-16.14:15:52
SpamBayes Score 1.7192126e-07
Marked as misclassified No
Message-id <1287238554.77.0.835644404703.issue10123@psf.upfronthosting.co.za>
In-reply-to
Content
In #10114, I changed parser filename encoding from utf-8/strict to the filesystem encoding/surrogateescape. With C locale, the filesystem encoding is ASCII and test_doctest fails because it uses an unencoable filename (foo-bär@baz.py).

A solution is to write a test specific to non-ascii filenames and skip it if the filename is not encodable (try if os.fsencode() raises an UnicodeEncodeError or not), and use only ascii filenames in the other tests.
History
Date User Action Args
2010-10-16 14:15:54vstinnersetrecipients: + vstinner
2010-10-16 14:15:54vstinnersetmessageid: <1287238554.77.0.835644404703.issue10123@psf.upfronthosting.co.za>
2010-10-16 14:15:53vstinnerlinkissue10123 messages
2010-10-16 14:15:52vstinnercreate