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_pep277 failure on AMD64 debian parallel buildbot
Type: behavior Stage: needs patch
Components: Tests, Unicode Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: flox, loewis, pitrou, vstinner
Priority: normal Keywords: buildbot

Created on 2010-09-04 12:01 by flox, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg115568 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-09-04 12:01
This failure occurs on AMD64 debian parallel buildbot.
It is not the same failure as OS X Tiger buildbot (issue 8423).


======================================================================
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_21179_tmp/Grüß-Gott'
Items in the second set but not the first:
'@test_21179_tmp/Gr\udcfc\udcdf-Gott'

======================================================================
FAIL: test_listdir (test.test_pep277.UnicodeNFCFileTests)
----------------------------------------------------------------------
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_21179_tmp/Grüß-Gott'
Items in the second set but not the first:
'@test_21179_tmp/Gr\udcfc\udcdf-Gott'

======================================================================
FAIL: test_listdir (test.test_pep277.UnicodeNFKCFileTests)
----------------------------------------------------------------------
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_21179_tmp/Grüß-Gott'
Items in the second set but not the first:
'@test_21179_tmp/Gr\udcfc\udcdf-Gott'

----------------------------------------------------------------------
Ran 30 tests in 1.576s


http://www.python.org/dev/buildbot/builders/AMD64%20debian%20parallel%203.x/builds/94/steps/test/logs/stdio
msg118547 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-10-13 17:10
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'
msg118977 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-10-17 20:11
That appears to be a bug in the NFS server. When you creat("Gr\303\274-Gott"), what actually comes out of getdents(3) is Gr\303\274-Gott. This only happens with four bytes of non-ASCII - two UTF-8 bytes are correctly reported. We are investigating this locally.
msg166020 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2012-07-21 13:04
> That appears to be a bug in the NFS server.

So, it's not a Python bug.
History
Date User Action Args
2022-04-11 14:57:06adminsetgithub: 53981
2012-07-21 14:41:54floxlinkissue9773 superseder
2012-07-21 13:04:29floxsetstatus: open -> closed
resolution: works for me
messages: + msg166020
2010-10-17 20:11:42loewissetmessages: + msg118977
2010-10-13 17:10:52pitrousetnosy: + loewis, vstinner, pitrou
messages: + msg118547
2010-09-04 12:01:24floxcreate