[New-bugs-announce] [issue7669] test_unicode_file fails with non-ascii path

Florent Xicluna report at bugs.python.org
Sun Jan 10 19:18:27 CET 2010

New submission from Florent Xicluna <laxyf at yahoo.fr>:

/tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_unicode_file
test test_unicode_file failed -- Traceback (most recent call last):
  File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 173, in test_single_files
  File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 147, in _test_single
  File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 48, in _do_single
  File "/tmp/py2u…→unicode/Lib/posixpath.py", line 338, in abspath
    path = join(os.getcwd(), path)
  File "/tmp/py2u…→unicode/Lib/posixpath.py", line 70, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 29: ordinal not in range(128)

1 test failed:

components: Tests
messages: 97537
nosy: flox
severity: normal
status: open
title: test_unicode_file fails with non-ascii path
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list