test_linkcode.test_html fails with C locale and Python 3

Arfrever Frehtes Taifersar Arahesis avatarArfrever 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 (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.