Issue 8430: test_site failure with non-ASCII directory (original) (raw)

Issue8430

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:00 admin set github: 52677
2010-04-18 08:27:00 vstinner set messages: +
2010-04-18 08:01:18 vstinner set status: open -> closedresolution: fixedmessages: +
2010-04-17 14:28:51 pitrou set assignee: barrynosy: + barry
2010-04-17 13:39:52 vstinner create