Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#204 Further Python 3.3 failures

sandbox
closed-fixed
nobody
None
5
2013-05-16
2012-08-23
Anonymous
No

I've been attempting to get python-docutils to build with Python 3.3 (3.3.0b2).
With a fresh svn checkout:

$ python3 setup.py build
$ python3 test3/alltests.py

I get these errors:
test_parsers/test_rst/test_inline_markup.py: totest['markup recognition rules'][4]; test_parser (DocutilsTestSupport.ParserTestCase)
input:
b'"Quoted" markup start-string (matched openers & closers) -> no markup:\n\n\'*\' "*" (*) <*> [*] {*}\n\\u2045*\\u2046\n\nSome international quoting styles:\n\\u2018*\\u2019 \\u201c*\\u201d English, ...,\n\\u201e*\\u201c \\u201a*\\u2018 \xbb*\xab \\u203a*\\u2039 German, Czech, ...,\n\\u201e*\\u201d \xab*\xbb Romanian,\n\\u201c*\\u201e \\u2018*\\u201a Greek,\n\\u300c*\\u300d \\u300e*\\u300ftraditional Chinese,\n\\u201d*\\u201d \\u2019*\\u2019 \xbb*\xbb \\u203a*\\u203a Swedish, Finnish,\n\\u201e*\\u201d \\u201a*\\u2019 Polish,\n\\u201e*\\u201d \xbb*\xab \\u2019*\\u2019 Hungarian,\n\nBut this is \\u201e*\\u2019 emphasized \xbb*\\u2039.\n'
-: expected
+: output
<document source="test data">
<paragraph>
"Quoted" markup start-string (matched openers & closers) -> no markup:
<paragraph>
'*' "*" (*) <*> [*] {*}
⁅*⁆
<paragraph>
Some international quoting styles:
+ ‘
+ <emphasis>
+ ’ “
- ‘*’ “*” English, ...,
? ------
+ ” English, ...,
+ „*“ ‚*‘ »*« ›
+ <emphasis>
- „*“ ‚*‘ »*« ›*‹ German, Czech, ...,
? --- --- --- ^^
+ ‹ German, Czech, ...,
? ^
+ „
- „*” «*» Romanian,
? --
+ ” «*» Romanian,
“*„ ‘*‚ Greek,
「*」 『*』traditional Chinese,
”*” ’*’ »*» ›*› Swedish, Finnish,
„*” ‚*’ Polish,
„*” »*« ’*’ Hungarian,
<paragraph>
But this is „
<emphasis>
’ emphasized »
‹.
F..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_unicode (test_error_reporting.ErrorStringTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/david/coding/python3.3/docutils/trunk/docutils/test3/test_error_reporting.py", line 154, in test_unicode
str(ErrorString(ImportError(self.bs))))
File "/home/david/coding/python3.3/docutils/trunk/docutils/build/lib/docutils/utils/error_reporting.py", line 124, in __str__
super(ErrorString, self).__str__())
File "/home/david/coding/python3.3/docutils/trunk/docutils/build/lib/docutils/utils/error_reporting.py", line 74, in __str__
return str(self.data)
TypeError: __str__ returned non-string (type bytes)

======================================================================
FAIL: test_parsers/test_rst/test_inline_markup.py: totest['markup recognition rules'][4]; test_parser (DocutilsTestSupport.ParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/david/coding/python3.3/docutils/trunk/docutils/test3/DocutilsTestSupport.py", line 459, in test_parser
self.compare_output(self.input, output, self.expected)
File "/home/david/coding/python3.3/docutils/trunk/docutils/test3/DocutilsTestSupport.py", line 230, in compare_output
raise error
File "/home/david/coding/python3.3/docutils/trunk/docutils/test3/DocutilsTestSupport.py", line 217, in compare_output
self.assertEqual(output, expected)
File "/home/david/coding/python3.3/docutils/trunk/docutils/test3/DocutilsTestSupport.py", line 122, in assertEqual
raise self.failureException(msg or '%s != %s' % _format_str(first, second))
AssertionError: '''\ <document source="test data">
<paragraph>
"Quoted" markup start-string (matched openers & closers) -> no markup:
<paragraph>
\'*\' "*" (*) <*> [*] {*}
⁅*⁆
<paragraph>
Some international quoting styles:

<emphasis>
’ “
” English, ...,
„*“ ‚*‘ »*« ›
<emphasis>
‹ German, Czech, ...,

” «*» Romanian,
“*„ ‘*‚ Greek,
「*」 『*』traditional Chinese,
”*” ’*’ »*» ›*› Swedish, Finnish,
„*” ‚*’ Polish,
„*” »*« ’*’ Hungarian,
<paragraph>
But this is „
<emphasis>
’ emphasized »
‹.''' != '''\ <document source="test data">
<paragraph>
"Quoted" markup start-string (matched openers & closers) -> no markup:
<paragraph>
\'*\' "*" (*) <*> [*] {*}
⁅*⁆
<paragraph>
Some international quoting styles:
‘*’ “*” English, ...,
„*“ ‚*‘ »*« ›*‹ German, Czech, ...,
„*” «*» Romanian,
“*„ ‘*‚ Greek,
「*」 『*』traditional Chinese,
”*” ’*’ »*» ›*› Swedish, Finnish,
„*” ‚*’ Polish,
„*” »*« ’*’ Hungarian,
<paragraph>
But this is „
<emphasis>
’ emphasized »
‹.'''

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

along with the errors already reported as: https://sourceforge.net/tracker/?func=detail&aid=3555164&group_id=38414&atid=422030

Discussion

  • Günter Milde
    Günter Milde
    2012-08-24

    Unfortunately, I cannot guess why a part of the input is vanishing in the inline markup test.
    This may be a hidden problem with the parsing or a false positive.
    Could you test if converting the following works as expected or shows some error ?

    "Quoted" markup start-string (matched openers & closers) -> no markup:

    '*' "*" (*) <*> [*] {*}
    ⁅*⁆

    Some international quoting styles:
    ‘*’ “*” English, ...,
    „*“ ‚*‘ »*« ›*‹ German, Czech, ...,
    „*” «*» Romanian,
    “*„ ‘*‚ Greek,
    「*」 『*』traditional Chinese,
    ”*” ’*’ »*» ›*› Swedish, Finnish,
    „*” ‚*’ Polish,
    „*” »*« ’*’ Hungarian,

    But this is „*’ emphasized »*‹.

    Does the last commit to ``error_reporting.py`` fix the
    ERROR: test_unicode (test_error_reporting.ErrorStringTests)?

     

  • Anonymous
    2012-08-24

    The
    ERROR: test_unicode (test_error_reporting.ErrorStringTests)
    issue appears to be a a bug in Python 3.3, which I've reported as http://bugs.python.org/issue15778

    It only affects ImportError.__str__; other exceptions aren't affected AFAIK.

     
  • Günter Milde
    Günter Milde
    2013-05-16

    The issue seems to be solved in 3.3.1, test_inline_markup.py runs fine.

     
  • Günter Milde
    Günter Milde
    2013-05-16

    • status: open --> closed-fixed
    • Group: --> sandbox