Bugs item #3423983, was opened at 2011-10-14 17:18
Message generated for change (Comment added) made by milde
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3423983&group_id=38414
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jakub Wilk (jakub-wilk)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_writers.test_docutils_xml.DocutilsXMLTestCase fails
Initial Comment:
It looks like recent changes to xml.dom.minidom[0][1] broke test_writers.test_docutils_xml.DocutilsXMLTestCase:
======================================================================
FAIL: test_publish (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/python-docutils-_daXVI/python-docutils-0.8.1/test/test_writers/test_docutils_xml.py", line 80, in test_publish
expected)
File "/build/python-docutils-_daXVI/python-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="<string>">
<paragraph>Test </paragraph>
<transition/>
<paragraph>Test. \xe4\xf6\xfc€ </paragraph>
</document>
''' != '''\
<!-- Generated by Docutils 0.8.1 -->
<document source="<string>">
<paragraph>
Test
</paragraph>
<transition/>
<paragraph>
Test. \xe4\xf6\xfc€
</paragraph>
</document>
'''
[0] http://bugs.python.org/issue4147
[1] http://hg.python.org/cpython/rev/fa0b1e50270f
----------------------------------------------------------------------
>Comment By: Günter Milde (milde)
Date: 2011-11-24 01:02
Message:
Applied the patch from the mailing list with some modifications to separate
sample strings from the logic.
Thanks!
----------------------------------------------------------------------
Comment By: Günter Milde (milde)
Date: 2011-11-24 01:02
Message:
Fixed; thanks for the bug report.
You can download a current snapshot from:
http://docutils.sf.net/docutils-snapshot.tgz
----------------------------------------------------------------------
Comment By: Jakub Wilk (jakub-wilk)
Date: 2011-10-20 14:22
Message:
Indeed, when I originally wrote the bug report, I didn't realize that
Python in Debian is so heavily patched (it's in fact based on Mercurial
snapshot).
Sorry for the noise.
----------------------------------------------------------------------
Comment By: Günter Milde (milde)
Date: 2011-10-20 14:13
Message:
Looking at the Debian bugreport
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645369
I get the impression that this affects only a patched
xml.dom.minidom.toprettyxml
in Debian's "python2.7" package, version 2.7.2-7.
Putting this in "Pending" status. For a solution, either the patch needs to
be revoked or
we need a recipe to tell the patched module from the original one.
----------------------------------------------------------------------
Comment By: Günter Milde (milde)
Date: 2011-10-17 03:30
Message:
Thanks for your bug report. It looks like the test needs either to consider
python versions or to be relaxed.
Can you provide a version test line that could be used to define two
variants of the `bodyindents` string
used in test/test_writers/test_docutils_xml.py?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3423983&group_id=38414
|