Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424507 - dev-python/docutils-0.8.1 - src_test(): test_publish fails
Summary: dev-python/docutils-0.8.1 - src_test(): test_publish fails
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-02 14:57 UTC by Stefan Kuhn
Modified: 2012-12-06 08:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild docutils-0.8.1.ebuild test (docutils-0.8.1.ebuild.test,42.35 KB, text/plain)
2012-07-02 15:09 UTC, Stefan Kuhn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kuhn 2012-07-02 14:57:26 UTC
dev-python/docutils-0.8.1 fails test
************************************

The test output is in the attachement.
docutils-0.9 does not fail the test.

Tested on:
amd64:
 kernel linux-3.4.2-gentoo-r1 with python 3.2
 kernel linux-3.3.8-gentoo with python 2.7 and 3.2
x86:
 kernel linux-3.2.12-gentoo with python 2.7 and 3.2

The problem might be upstream, anyway - I will currently not do more about it then report it here.
Comment 1 Stefan Kuhn 2012-07-02 15:09:25 UTC
Created attachment 316979 [details]
ebuild docutils-0.8.1.ebuild test

======================================================================
FAIL: test_publish (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/docutils-0.8.1/work/docutils-0.8.1/test/test_writers/test_docutils_xml.py", line 80, in test_publish
    expected)
  File "/var/tmp/portage/dev-python/docutils-0.8.1/work/docutils-0.8.1/test/DocutilsTestSupport.py", line 116, in failUnlessEqual
    (msg or '%s != %s' % _format_str(first, second))
AssertionError: '''\
<!-- Generated by Docutils 0.8.1 -->
<document source="&lt;string&gt;">
    <paragraph>Test</paragraph>
    <transition/>
    <paragraph>Test. \xe4\xf6\xfc&#8364;</paragraph>
</document>
''' != '''\
<!-- Generated by Docutils 0.8.1 -->
<document source="&lt;string&gt;">
    <paragraph>
        Test
    </paragraph>
    <transition/>
    <paragraph>
        Test. \xe4\xf6\xfc&#8364;
    </paragraph>
</document>
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-07-03 18:37:31 UTC
New formatting was introduced in CPython 2.7.3 and 3.2.3.
Docutils was adjusted in r7226:
http://docutils.svn.sourceforge.net/viewvc/docutils?view=revision&revision=7226
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-11-03 12:32:45 UTC
 docutils # ebuild docutils-0.9.ebuild clean test

 * Testing of dev-python/docutils-0.9 with CPython 2.7...

Ran 1187 tests in 10.015s             
OK

 * Testing of dev-python/docutils-0.9 with CPython 3.1...
Ran 1175 tests in 8.762s
OK

There a 2 versions since docutils-0.8.1
Comment 4 Paolo Pedroni 2012-12-06 08:10:45 UTC
(In reply to comment #3)
> There a 2 versions since docutils-0.8.1

but docutils-0.8.1 is stable, the others are not...