[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

Antoine Pitrou report at bugs.python.org
Wed Oct 13 19:10:53 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Actually, the error message is (when interpreted as utf-8):

======================================================================
FAIL: test_listdir (test.test_pep277.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/autofs/net/homedir/home/martin.vonloewis/buildarea/3.x.loewis-parallel2/build/Lib/test/test_pep277.py", line 157, in test_listdir
    self.assertEqual(sf0, sf2)
AssertionError: Items in the first set but not the second:
'@test_29046_tmp/Grüß-Gott'
Items in the second set but not the first:
'@test_29046_tmp/Gr\udcfc\udcdf-Gott'


Which corresponds to utf8 or ascii decoding of "Grüß-Gott" encoded with latin1:

>>> "Grüß-Gott".encode("latin1").decode("ascii", "surrogateescape")
'Gr\udcfc\udcdf-Gott'
>>> "Grüß-Gott".encode("latin1").decode("utf8", "surrogateescape")
'Gr\udcfc\udcdf-Gott'

----------
nosy: +haypo, loewis, pitrou

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


More information about the Python-bugs-list mailing list