[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_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
    self._test_single(TESTFN_UNICODE)
  File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 147, in _test_single
    self._do_single(filename)
  File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 48, in _do_single
    self.assertTrue(os.path.exists(os.path.abspath(filename)))
  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:
    test_unicode_file

----------
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>
<http://bugs.python.org/issue7669>
_______________________________________


More information about the New-bugs-announce mailing list