[New-bugs-announce] [issue17754] test_ctypes assumes LANG=C LC_ALL=C

Matthias Klose report at bugs.python.org
Tue Apr 16 13:14:31 CEST 2013


New submission from Matthias Klose:

this test assumes LANG=C LC_ALL=C

test.test_ctypes (unittest.loader.LoadTestsFailure) ... ERROR

======================================================================
ERROR: test.test_ctypes (unittest.loader.LoadTestsFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/test/test_ctypes.py", line 11, in load_tests
    skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
  File "/usr/lib/python3.3/ctypes/test/__init__.py", line 64, in get_tests
    mod = __import__(modname, globals(), locals(), ['*'])
  File "/usr/lib/python3.3/ctypes/test/test_find.py", line 17, in <module>
    lib_gle = find_library("gle")
  File "/usr/lib/python3.3/ctypes/util.py", line 242, in find_library
    return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
  File "/usr/lib/python3.3/ctypes/util.py", line 99, in _findLib_gcc
    trace = f.read()
  File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 471: ordinal not in range(128)

----------
components: Tests
messages: 187070
nosy: doko
priority: normal
severity: normal
stage: needs patch
status: open
title: test_ctypes assumes LANG=C LC_ALL=C
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list