[Python-Dev] test_unicode_file fails on Linux

Jeremy Hylton jeremy at alum.mit.edu
Fri Dec 26 15:22:52 EST 2003

The utime() call is failing for one of the Unicode file names.  

build> ./python ../Lib/test/test_unicode_file.py
test_directories (__main__.TestUnicodeFiles) ... ok
test_equivalent_files (__main__.TestUnicodeFiles) ... ok
test_single_files (__main__.TestUnicodeFiles) ...
ERROR: test_single_files (__main__.TestUnicodeFiles)
Traceback (most recent call last):
  File "../Lib/test/test_unicode_file.py", line 143, in
  File "../Lib/test/test_unicode_file.py", line 117, in _test_single
  File "../Lib/test/test_unicode_file.py", line 33, in _do_single
    os.utime(filename, None)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
6-7: ordinal not in range(128)

I'm running on a RH9 system.

I see that the code hasn't changed since the beginning of the month, so
I'm surprised to only discover it now.  I can't recall the last time I
did a full test run, so I'm not sure how long it has been failing.


More information about the Python-Dev mailing list