[issue5944] test_os failure on OS X, probably related to PEP 383
Mark Dickinson
report at bugs.python.org
Tue May 5 21:42:07 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Even better:
>>> for s in map(unicodedata.name, found): print(s)
...
LATIN SMALL LETTER F
LATIN SMALL LETTER O
LATIN SMALL LETTER O
LATIN SMALL LETTER O
COMBINING DIAERESIS
LATIN SMALL LETTER B
LATIN SMALL LETTER A
LATIN SMALL LETTER R
>>> for s in map(unicodedata.name, expected): print(s)
...
LATIN SMALL LETTER F
LATIN SMALL LETTER O
LATIN SMALL LETTER O
LATIN SMALL LETTER O WITH DIAERESIS
LATIN SMALL LETTER B
LATIN SMALL LETTER A
LATIN SMALL LETTER R
>>> found == expected
False
>>> unicodedata.normalize('NFC', found) == unicodedata.normalize('NFC',
expected)
True
So there are two separate issues, both of which just require fixing the
tests: one issue is that OS X transforms invalid filenames; the other is
that it normalizes valid filenames.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5944>
_______________________________________
More information about the Python-bugs-list
mailing list