[New-bugs-announce] [issue8430] test_site failure with non-ASCII directory

STINNER Victor report at bugs.python.org
Sat Apr 17 15:39:53 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

r80137 (PEP 3147) introduced a test in test_site. The test fails on non-ASCII directory because stdout uses ASCII whereas the directories contains non-ASCII characters.

http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 3.x/builds/848

Attached patch is a workaround to this issue. The path is encoded to ASCII using backslashreplace error handler. But the patch is not perfect, it should use the reverse operation to get the path as an unicode string. But I don't know how to implement the reverse operation of .encode("ascii", "backslashreplace").

----------
files: test_site.patch
keywords: buildbot, patch
messages: 103400
nosy: haypo
severity: normal
status: open
title: test_site failure with non-ASCII directory
versions: Python 3.2
Added file: http://bugs.python.org/file16959/test_site.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8430>
_______________________________________


More information about the New-bugs-announce mailing list