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_site failure with non-ASCII directory
Type: Stage:
Components: Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, vstinner
Priority: normal Keywords: buildbot, patch

Created on 2010-04-17 13:39 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_site.patch vstinner, 2010-04-17 13:39
Messages (3)
msg103400 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-17 13:39
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").
msg103467 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-18 08:01
Fixed by r80161 (py3k).
msg103472 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-18 08:27
> Fixed by r80161 (py3k).

It works, the buildbot is now green.

http://www.python.org/dev/buildbot/all/builders/AMD64 Ubuntu wide 3.x
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52677
2010-04-18 08:27:00vstinnersetmessages: + msg103472
2010-04-18 08:01:18vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg103467
2010-04-17 14:28:51pitrousetassignee: barry

nosy: + barry
2010-04-17 13:39:52vstinnercreate