[Python-modules-team] Bug#692286: python-docutils: FTBFS with Python 3.3: FAIL: test_parsers/test_rst/test_directives/test_tables.py
Jakub Wilk
jwilk at debian.org
Sun Nov 4 17:46:06 UTC 2012
Source: python-docutils
Version: 0.9.1-2
Severity: important
Tags: help
User: debian-python at lists.debian.org
Usertags: python3.3
python-docutils FTBFS if built against Python 3.3:
| ======================================================================
| FAIL: test_parsers/test_rst/test_directives/test_tables.py: totest['csv-table'][18]; test_parser (DocutilsTestSupport.ParserTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 459, in test_parser
| self.compare_output(self.input, output, self.expected)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 230, in compare_output
| raise error
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 217, in compare_output
| self.assertEqual(output, expected)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 118, in assertEqual
| raise self.failureException(msg or '%s != %s' % _format_str(first, second))
| AssertionError: '''\
| <document source="test data">
| <table>
| <title>
| bad CSV data
| <tgroup cols="2">
| <colspec colwidth="50">
| <colspec colwidth="50">
| <tbody>
| <row>
| <entry>
| <paragraph>
| bad
| <entry>
| <paragraph>
| csv, data''' != '''\
| <document source="test data">
| <system_message level="3" line="1" source="test data" type="ERROR">
| <paragraph>
| Error with CSV data in "csv-table" directive:
| newline inside string
| <literal_block xml:space="preserve">
| .. csv-table:: bad CSV data
| \n\
| "bad", "csv, data'''
|
| ======================================================================
| FAIL: test_parsers/test_rst/test_directives/test_tables.py: totest['csv-table'][19]; test_parser (DocutilsTestSupport.ParserTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 459, in test_parser
| self.compare_output(self.input, output, self.expected)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 230, in compare_output
| raise error
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 217, in compare_output
| self.assertEqual(output, expected)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/DocutilsTestSupport.py", line 118, in assertEqual
| raise self.failureException(msg or '%s != %s' % _format_str(first, second))
| AssertionError: '''\
| <document source="test data">
| <table>
| <title>
| bad CSV header data
| <tgroup cols="3">
| <colspec colwidth="33">
| <colspec colwidth="33">
| <colspec colwidth="33">
| <thead>
| <row>
| <entry>
| <paragraph>
| bad
| <entry>
| <paragraph>
| csv, data
| <entry>
| <tbody>
| <row>
| <entry>
| <paragraph>
| good
| <entry>
| <paragraph>
| csv
| <entry>
| <paragraph>
| data''' != '''\
| <document source="test data">
| <system_message level="3" line="1" source="test data" type="ERROR">
| <paragraph>
| Error with CSV data in "csv-table" directive:
| newline inside string
| <literal_block xml:space="preserve">
| .. csv-table:: bad CSV header data
| :header: "bad", "csv, data
| \n\
| good, csv, data'''
|
| ----------------------------------------------------------------------
| Ran 1182 tests in 13.561s
For extra fun, I cannot reproduce this failure with upstream Python
3.3.0.
--
Jakub Wilk
More information about the Python-modules-team
mailing list