Message26296
The doctest module fails when the expected result
string has non-ascii charcaters even if the # -*-
coding: XXX -*- line is properly set.
The enclosed code sample produce the following error:
Traceback (most recent call last):
File "test_iso-8859-15.py", line 41, in ?
_test()
File "test_iso-8859-15.py", line 26, in _test
tried, failed = runner.run(t)
File "/usr/lib/python2.4/doctest.py", line 1376, in run
return self.__run(test, compileflags, out)
File "/usr/lib/python2.4/doctest.py", line 1259, in __run
if check(example.want, got, self.optionflags):
File "/usr/lib/python2.4/doctest.py", line 1475, in
check_output
if got == want:
UnicodeDecodeError: 'ascii' codec can't decode byte
0xe9 in position 8: ordinal not in range(128)
|
|
Date |
User |
Action |
Args |
2007-08-23 14:34:36 | admin | link | issue1293741 messages |
2007-08-23 14:34:36 | admin | create | |
|