Issues

Issue #875 resolved

test_errors_warnings fails with Python 3 and LC_ALL=C

Jakub Wilk
created an issue

When test_config.test_errors_warnings is run using Python 3 and LC_ALL is set to C, it fails with the following exception: {{{ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest self.test(self.arg) File "/usr/lib/python3/dist-packages/nose/util.py", line 622, in newfunc return func(arg, kw) File "/tmp/sphinx-1.1.2/build/lib/tests/util.py", line 214, in new_func func(tempdir, *args, kwds) File "/tmp/sphinx-1.1.2/build/lib/tests/test_config.py", line 94, in test_errors_warnings cfg = Config(dir, 'conf.py', {}, None) File "../sphinx/config.py", line 200, in init source = f.read() File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] Exception: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128) }}}

Comments (2)

  1. Log in to comment