A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041427.html below:

[Python-Dev] test_unicode_file fails on Linux

[Python-Dev] test_unicode_file fails on LinuxJeremy 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) ...
'@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



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4