Message20365
Logged In: YES
user_id=31435
Reopened, because the same test is still failing on Win98SE,
but for a different reason.
The traceback is identical, except that it's now failing in the
listcomp on the line following the line it used to fail on:
File ".../lib/test/test_unicode_file.py", line 50, in _do_single
file_list = [unicodedata.normalize("NFD", f) for f in file_list]
TypeError: normalized() argument 2 must be unicode, not str
filename is
u'@test-\xe0\xf2'
os.path.abspath(filename) is
u'C:\\Code\\python\\PC\\VC6\\@test-\xe0\xf2'
new_base is
u'@test-a\u0300o\u0300'
The problem now is that the first name in file_list is
'CVS'
so
[unicodedata.normalize("NFD", f) for f in file_list]
is passing an 8-bit string to normalize(). Earlier code in the
test *appears* to assume that if filename is Unicode, then
os.listdir() will return a list of Unicode strings. But file_list is a
list of 153 8-bit strings on this box.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:20:40 | admin | link | issue924703 messages |
2007-08-23 14:20:40 | admin | create | |
|