From: engelbert g. <eng...@gm...> - 2013-08-16 08:21:34
|
hei, this is a known bug, but only happens on certain python versions. on MacOSX 10.6.8: python 2.5.4 all pass, python2.6.1 has this failure, python2.7.3 all pass on ubuntu8.04: 2.4.5, 2.5.2, 2.6.7, 2.7.2 all pass python 2.6.4rc1 fails due to error message change. as 2.6.7 passes , this seams to be a change in python. all the best engelbert On 15 August 2013 16:11, Željko Babić <zb...@gm...> wrote: > Hi, > > this was done on OS X 10.6.8 with Docutils 0.12 and Python 2.6.1 > I hope it'll be of help. > > Zeljko > > ====================== > > Ran 1239 tests in 12.865s > > FAILED (failures=6) > > ====================== > > Testing Docutils 0.12 [repository] with Python 2.6.1 on 2013-08-15 at > 15:59:22 > Working directory: /Users/zbabic/Downloads/temp/docutils/test > Docutils package: /Users/zbabic/Downloads/temp/docutils/docutils > > test_parsers/test_rst/test_directives/test_include.py: totest['include'][6]; > test_parser > (DocutilsTestSupport.ParserTestCase) > input: > Include Test > ============ > > .. include:: nonexistent.txt > > A paragraph. > > -: expected > +: output > <document source="test data"> > <section ids="include-test" names="include\ test"> > <title> > Include Test > <system_message level="4" line="4" source="test data" > type="SEVERE"> > <paragraph> > Problems with "include" directive path: > - InputError: [Errno 2] No such file or directory: > 'nonexistent.txt'. > ? ^^^^^^ ^^^ -- > ^^^^^^^^^^^^^^^^ > + InputError: (2, 'No such file or directory'). > ? ^^^ ^ ^ > <literal_block xml:space="preserve"> > .. include:: nonexistent.txt > <paragraph> > A paragraph. > > test_parsers/test_rst/test_directives/test_include.py: > totest['include'][14]; test_parser > (DocutilsTestSupport.ParserTestCase) > input: > cyrillic filename: > > .. include:: \u043c\u0438\u0440.txt > > -: expected > +: output > <document source="test data"> > <paragraph> > cyrillic filename: > <system_message level="4" line="3" source="test data" type="SEVERE"> > <paragraph> > Problems with "include" directive path: > - InputError: [Errno 2] No such file or directory: > '\u043c\u0438\u0440.txt'. > + InputError: (2, 'No such file or directory'). > <literal_block xml:space="preserve"> > .. include:: \u043c\u0438\u0440.txt > > test_parsers/test_rst/test_directives/test_include.py: > totest['include'][15]; test_parser > (DocutilsTestSupport.ParserTestCase) > input: > Testing errors in included file: > > .. include:: test_parsers/test_rst/test_directives/include10.txt > > -: expected > +: output > <document source="test data"> > <paragraph> > Testing errors in included file: > <system_message level="3" line="1" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Invalid character code: 0x11111111 > ValueError: unichr() arg not in range(0x10000) (narrow Python > build) > <literal_block xml:space="preserve"> > unicode:: 0x11111111 > <system_message level="2" line="1" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Substitution definition "bad" empty or invalid. > <literal_block xml:space="preserve"> > .. |bad| unicode:: 0x11111111 > <section dupnames="hi" ids="hi"> > <title> > hi > <block_quote> > <paragraph> > indent > <system_message level="2" line="7" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Block quote ends without a blank line; unexpected > unindent. > <paragraph> > error > <section dupnames="hi" ids="id1"> > <title> > hi > <system_message backrefs="id1" level="1" line="10" > source="test_parsers/test_rst/test_directives/include10.txt" type="INFO"> > <paragraph> > Duplicate implicit target name: "hi". > <system_message level="4" line="12" > source="test_parsers/test_rst/test_directives/include10.txt" type="SEVERE"> > <paragraph> > Problems with "include" directive path: > - InputError: [Errno 2] No such file or directory: > '../docutils/parsers/rst/include/nonexistent'. > + InputError: (2, 'No such file or directory'). > <literal_block xml:space="preserve"> > .. include:: <nonexistent> > <system_message level="3" line="14" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Content block expected for the "note" directive; none > found. > <literal_block xml:space="preserve"> > .. note:: > <system_message level="3" line="16" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Content block expected for the "admonition" directive; > none found. > <literal_block xml:space="preserve"> > .. admonition:: > without title > <system_message level="3" line="19" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Content block expected for the "epigraph" directive; none > found. > <literal_block xml:space="preserve"> > .. epigraph:: > <system_message level="3" line="21" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Content block expected for the "highlights" directive; > none found. > <literal_block xml:space="preserve"> > .. highlights:: > <system_message level="3" line="23" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Content block expected for the "pull-quote" directive; > none found. > <literal_block xml:space="preserve"> > .. pull-quote:: > <system_message level="3" line="25" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Invalid context: the "date" directive can only be used > within a substitution definition. > <literal_block xml:space="preserve"> > .. date:: > <paragraph> > not a > definition list: > <system_message level="3" line="29" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Unexpected indentation. > <block_quote> > <paragraph> > as a term may only be one line long. > <system_message level="3" line="31" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Error in "admonition" directive: > 1 argument(s) required, 0 supplied. > <literal_block xml:space="preserve"> > .. admonition:: > > without title and content following a blank line > <section ids="section-underline-too-short" names="section\ underline\ > too\ short"> > <title> > section underline too short > <system_message level="2" line="36" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Title underline too short. > <literal_block xml:space="preserve"> > section underline too short > ----- > <table> > <tgroup cols="2"> > <colspec colwidth="14"> > <colspec colwidth="6"> > <thead> > <row> > <entry> > <paragraph> > A simple table > <entry> > <paragraph> > cell 2 > <tbody> > <row> > <entry> > <paragraph> > cell 3 > <entry> > <paragraph> > cell 4 > <system_message level="2" line="43" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Blank line required after table. > <paragraph> > No blank line after table. > <system_message level="3" line="45" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Error in "unicode" directive: > 1 argument(s) required, 0 supplied. > <literal_block xml:space="preserve"> > unicode:: > <system_message level="2" line="45" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Substitution definition "empty" empty or invalid. > <literal_block xml:space="preserve"> > .. |empty| unicode:: > <system_message level="3" line="47" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Error in "topic" directive: > 1 argument(s) required, 0 supplied. > <literal_block xml:space="preserve"> > .. topic:: > <system_message level="3" line="49" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Error in "rubric" directive: > 1 argument(s) required, 0 supplied. > <literal_block xml:space="preserve"> > .. rubric:: > <rubric> > A rubric has no content > <comment xml:space="preserve"> > _`target: No matching backquote. > <system_message level="2" line="52" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > malformed hyperlink target. > <comment xml:space="preserve"> > __malformed: no good > <system_message level="2" line="53" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > malformed hyperlink target. > <definition_list> > <definition_list_item> > <term> > A literal block:: > <definition> > <system_message level="1" line="57" > source="test_parsers/test_rst/test_directives/include10.txt" type="INFO"> > <paragraph> > Blank line missing before literal block (after > the "::")? Interpreted as a definition list item. > <paragraph> > with no blank line above. > <literal_block xml:space="preserve"> > > A literal block. > <system_message level="3" line="61" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Inconsistent literal block quoting. > <paragraph> > $ with inconsistent quoting. > <paragraph> > <problematic ids="id3" refid="id2"> > :unknown-role:`role` > > and > <problematic ids="id5" refid="id4"> > * > unbalanced > <problematic ids="id7" refid="id6"> > ` > inline > <problematic ids="id9" refid="id8"> > ** > markup > <system_message level="1" line="63" > source="test_parsers/test_rst/test_directives/include10.txt" type="INFO"> > <paragraph> > No role entry for "unknown-role" in module > "docutils.parsers.rst.languages.en". > Trying "unknown-role" as canonical role name. > <system_message backrefs="id3" ids="id2" level="3" line="63" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Unknown interpreted text role "unknown-role". > <system_message backrefs="id5" ids="id4" level="2" line="63" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Inline emphasis start-string without end-string. > <system_message backrefs="id7" ids="id6" level="2" line="63" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Inline interpreted text or phrase reference start-string > without end-string. > <system_message backrefs="id9" ids="id8" level="2" line="63" > source="test_parsers/test_rst/test_directives/include10.txt" type="WARNING"> > <paragraph> > Inline strong start-string without end-string. > <paragraph> > <problematic ids="id11" refid="id10"> > :PEP:`-1` > <system_message backrefs="id11" ids="id10" level="3" line="68" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > PEP number must be a number from 0 to 9999; "-1" is > invalid. > <system_message level="1" line="66" > source="test_parsers/test_rst/test_directives/include10.txt" type="INFO"> > <paragraph> > No directive entry for "unknown" in module > "docutils.parsers.rst.languages.en". > Trying "unknown" as canonical directive name. > <system_message level="3" line="70" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Unknown directive type "unknown". > <literal_block xml:space="preserve"> > .. unknown:: directive (info still reported with wrong > line) > <system_message level="3" line="72" > source="test_parsers/test_rst/test_directives/include10.txt" type="ERROR"> > <paragraph> > Malformed table. > No bottom table border found. > <literal_block xml:space="preserve"> > ============== ====== > A simple table with > no bottom border > > test_parsers/test_rst/test_directives/test_include.py: > totest['include'][18]; test_parser > (DocutilsTestSupport.ParserTestCase) > input: > Nonexistent standard include data file: > > .. include:: <nonexistent> > > -: expected > +: output > <document source="test data"> > <paragraph> > Nonexistent standard include data file: > <system_message level="4" line="3" source="test data" type="SEVERE"> > <paragraph> > Problems with "include" directive path: > - InputError: [Errno 2] No such file or directory: > '../docutils/parsers/rst/include/nonexistent'. > + InputError: (2, 'No such file or directory'). > <literal_block xml:space="preserve"> > .. include:: <nonexistent> > > test_parsers/test_rst/test_directives/test_raw.py: totest['raw'][9]; > test_parser > (DocutilsTestSupport.ParserTestCase) > input: > .. raw:: html > :file: non-existent.file > > -: expected > +: output > <document source="test data"> > <system_message level="4" line="1" source="test data" type="SEVERE"> > <paragraph> > Problems with "raw" directive path: > - InputError: [Errno 2] No such file or directory: > 'non-existent.file'. > ? ^^^^^^ ^^^ -- > ^^^^^^^^^^^^^^^^^^ > + InputError: (2, 'No such file or directory'). > ? ^^^ ^ ^ > <literal_block xml:space="preserve"> > .. raw:: html > :file: non-existent.file > > test_parsers/test_rst/test_directives/test_tables.py: > totest['csv-table'][12]; test_parser > (DocutilsTestSupport.ParserTestCase) > input: > .. csv-table:: no such file > :file: bogus.csv > > -: expected > +: output > <document source="test data"> > <system_message level="4" line="1" source="test data" type="SEVERE"> > <paragraph> > Problems with "csv-table" directive path: > - [Errno 2] No such file or directory: 'bogus.csv'. > ? ^^^^^^ ^^^ -- ^^^^^^^^^^ > + (2, 'No such file or directory'). > ? ^^^ ^ ^ > <literal_block xml:space="preserve"> > .. csv-table:: no such file > :file: bogus.csv > Elapsed time: 14.812 seconds > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > -- http://blog.jazsoup.net |