[issue23908] Check path arguments of os functions for null character

koobs report at bugs.python.org
Sun Jul 3 01:10:18 EDT 2016


koobs added the comment:

======================================================================
ERROR: test_path_with_null_unicode (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_posix.py", line 585, in test_path_with_null_unicode
    test_support.unlink(fn)
  File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_support.py", line 243, in unlink
    _unlink(filename)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)

======================================================================
ERROR: test_path_with_null_unicode (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_support.py", line 243, in unlink
    _unlink(filename)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128)

----------------------------------------------------------------------
Ran 43 tests in 0.105s

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23908>
_______________________________________


More information about the Python-bugs-list mailing list