[Python-Dev] test_unicode_file fails on Linux (original) (raw)
Jeremy Hylton jeremy at alum.mit.edu
Fri Dec 26 15:22:52 EST 2003
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.172, 2.173
- Next message: [Python-Dev] test_unicode_file fails on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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) ... '@test-\xc3\xa0\xc3\xb2' '@test-\xc3\xa0\xc3\xb2' u'@test-\xe0\xf2' ERROR
ERROR: test_single_files (main.TestUnicodeFiles)
Traceback (most recent call last): File "../Lib/test/test_unicode_file.py", line 143, in test_single_files self._test_single(TESTFN_UNICODE) File "../Lib/test/test_unicode_file.py", line 117, in _test_single self._do_single(filename) 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.
Jeremy
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.172, 2.173
- Next message: [Python-Dev] test_unicode_file fails on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]