#257 windows7 py3.4.1 testsuite encoding bug

repository
open
nobody
None
5
4 days ago
2014-06-08
engelbert gruber
No

running alltest.py

test_parsers\test_rst\test_directives\test_include.py::

  b'Encoding:\n\n.. include:: test_parsers/test_rst/test_directives/utf-16.csv\n   :encoding: utf-16\n'
    File "test3\alltests.py", line 40, in write
      string = string.encode('raw_unicode_escape').decode('ascii')
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 994: ordinal not in range(128)

fiddling with alltests.py (uncommitted) ::

  <system_message level="4" line="1" source="test data" type="SEVERE">
    <paragraph>
        Problem with "raw" directive:
        UnicodeDecodeError: \'utf-16-be\' codec can\'t decode bytes in position 90-91: illegal encoding
    <literal_block xml:space="preserve">
        .. raw:: html
           :file: test_parsers/test_rst/test_directives/utf-16.csv
           :encoding: utf-16''' != '''\

Discussion