#64 Two failures in alltests.py

closed-works-for-me
Felix Wiemann
None
5
2006-10-09
2006-10-06
Chloe Lewis
No

OS: Mac OS X 10.4.7 (still PPC)
Python 2.5 (r25:51918)
GCC 4.0.1

672 tests, 2 failures, FAIL output:

============================================

FAIL: test_parsers/test_rst/test_directives/test_contents.py: totest
['contents'][8]; test_parser (DocutilsTestSupport.ParserTestCase)
------------------------------------------------------------
----------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/docutils-0.3/test/DocutilsTestSupport.py",
line 341, in test_parser
self.compare_output(self.input, output, self.expected)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/docutils-0.3/test/DocutilsTestSupport.py",
line 196, in compare_output
self.assertEquals('\n' + output, '\n' + expected)
AssertionError: '\n<document source="test data">\n
<system_message level="3" line="1" source="test data"
type="ERROR">\n <paragraph>\n Error in "contents"
directive:\n invalid option value: (option: "depth"; value: \'two\')
\n invalid literal for int() with base 10: \'two\'.\n
<literal_block xml:space="preserve">\n .. contents::\n
:depth: two\n' != '\n<document source="test data">\n
<system_message level="3" line="1" source="test data"
type="ERROR">\n <paragraph>\n Error in "contents"
directive:\n invalid option value: (option: "depth"; value: \'two\')
\n invalid literal for int(): two.\n <literal_block
xml:space="preserve">\n .. contents::\n :depth: two\n'

============================================

FAIL: test_parsers/test_rst/test_directives/test_images.py: totest
['images'][15]; test_parser (DocutilsTestSupport.ParserTestCase)
------------------------------------------------------------
----------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/docutils-0.3/test/DocutilsTestSupport.py",
line 341, in test_parser
self.compare_output(self.input, output, self.expected)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/docutils-0.3/test/DocutilsTestSupport.py",
line 196, in compare_output
self.assertEquals('\n' + output, '\n' + expected)
AssertionError: '\n<document source="test data">\n
<system_message level="3" line="1" source="test data"
type="ERROR">\n <paragraph>\n Error in "image"
directive:\n invalid option value: (option: "scale"; value: \'fifty\')
\n invalid literal for int() with base 10: \'fifty\'.\n
<literal_block xml:space="preserve">\n .. image:: picture.png\n
:scale: fifty\n' != '\n<document source="test data">\n
<system_message level="3" line="1" source="test data"
type="ERROR">\n <paragraph>\n Error in "image"
directive:\n invalid option value: (option: "scale"; value: \'fifty\')
\n invalid literal for int(): fifty.\n <literal_block
xml:space="preserve">\n .. image:: picture.png
\n :scale: fifty\n'

Discussion

  • Felix Wiemann
    Felix Wiemann
    2006-10-09

    • assigned_to: nobody --> fwiemann
    • status: open --> closed-works-for-me
     
  • Felix Wiemann
    Felix Wiemann
    2006-10-09

    Logged In: YES
    user_id=1374215

    You seem to be using using Docutils 0.3, which is kinda
    outdated. The current Docutils snapshot works fine with
    Python 2.5.