Menu

#235 Test failure with Python 3.3.2: test_tables.py: totest['csv-table'][13]

closed-fixed
nobody
None
5
2020-03-03
2013-05-16
Jakub Wilk
No

http://hg.python.org/cpython/rev/a38dd5df235c (included in Python 3.3.2) causes yet another test failure:

test_parsers/test_rst/test_directives/test_tables.py: totest['csv-table'][13]; test_parser (DocutilsTestSupport.ParserTestCase)
input:
b'.. csv-table:: bad URL\n   :url: bogus.csv\n'
-: expected
+: output
  <document source="test data">
      <system_message level="4" line="1" source="test data" type="SEVERE">
          <paragraph>
              Problems with "csv-table" directive URL "bogus.csv":
-             unknown url type: bogus.csv.
+             unknown url type: 'bogus.csv'.
?                               +         +
          <literal_block xml:space="preserve">
              .. csv-table:: bad URL
                 :url: bogus.csv

======================================================================
FAIL: test_parsers/test_rst/test_directives/test_tables.py: totest['csv-table'][13]; test_parser (DocutilsTestSupport.ParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jwilk/docutils-0.10/test3/DocutilsTestSupport.py", line 473, in test_parser
    self.compare_output(self.input, output, self.expected)
  File "/home/jwilk/docutils-0.10/test3/DocutilsTestSupport.py", line 244, in compare_output
    raise error
  File "/home/jwilk/docutils-0.10/test3/DocutilsTestSupport.py", line 231, in compare_output
    self.assertEqual(output, expected)
  File "/home/jwilk/docutils-0.10/test3/DocutilsTestSupport.py", line 123, in assertEqual
    msg or '%s != %s' % _format_str(first, second))
AssertionError: '''\
<document source="test data">
    <system_message level="4" line="1" source="test data" type="SEVERE">
        <paragraph>
            Problems with "csv-table" directive URL "bogus.csv":
            unknown url type: \'bogus.csv\'.
        <literal_block xml:space="preserve">
            .. csv-table:: bad URL
               :url: bogus.csv''' != '''\
<document source="test data">
    <system_message level="4" line="1" source="test data" type="SEVERE">
        <paragraph>
            Problems with "csv-table" directive URL "bogus.csv":
            unknown url type: bogus.csv.
        <literal_block xml:space="preserve">
            .. csv-table:: bad URL
               :url: bogus.csv'''

----------------------------------------------------------------------

Discussion

  • Günter Milde

    Günter Milde - 2013-05-16

    Could you please try if revision 7661 solves this issue?

     
  • Jakub Wilk

    Jakub Wilk - 2013-05-16

    Yes, it does. Thanks for the quick fix! :-)

     
  • Günter Milde

    Günter Milde - 2013-05-16
    • status: open --> closed-fixed
     

Log in to post a comment.