New submission from STINNER Victor <victor.stin...@haypocalc.com>:

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...@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.

----------
components: Tests, Unicode
messages: 118870
nosy: haypo
priority: normal
severity: normal
status: open
title: test_doctest failure with ASCII filesystem encoding
versions: Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10123>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to