Issues

Issue #1311 resolved

test_linkcode.test_html fails with C locale and Python 3

Arfrever Frehtes Taifersar Arahesis
created an issue

test_linkcode.test_html fails with C locale and Python 3. This problem does not occur with UTF-8 locale and does not occur with Python 2. I use Sphinx trunk (currently revision 9237e63f42e3).

======================================================================
ERROR: test_linkcode.test_html
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.3/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/tmp/sphinx/tests/util.py", line 199, in deco
    func(app, *args2, **kwargs2)
  File "/tmp/sphinx/tests/test_linkcode.py", line 21, in test_html
    stuff = fp.read()
  File "/usr/lib64/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6180: ordinal not in range(128)

----------------------------------------------------------------------
Ran 290 tests in 127.068s

FAILED (SKIP=4, errors=1)

Comments (4)

  1. Log in to comment