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.

classification
Title: test_doctest failure with ASCII filesystem encoding
Type: Stage:
Components: Tests, Unicode Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords:

Created on 2010-10-16 14:15 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg118870 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-10-16 14:15
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.
msg118900 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-10-16 21:52
Failures occurred on:
http://www.python.org/dev/buildbot/builders/AMD64%20Gentoo%20Wide%203.x
http://www.python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%203.x

test_zipimport_support does also fail, but it is linked to test_doctest failures.
msg118901 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-10-16 21:55
Fixed by r85578.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54332
2010-10-16 21:55:15vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg118901
2010-10-16 21:52:13vstinnersetmessages: + msg118900
2010-10-16 14:15:53vstinnercreate