[Python-modules-commits] r20662 - in packages/python-docutils/trunk/debian (3 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Sat Mar 3 00:40:15 UTC 2012
Date: Saturday, March 3, 2012 @ 00:40:13
Author: jwilk
Revision: 20662
Fool DocutilsXMLTestCase into thinking that Python version is 2.7.3/3.2.3 when it's in fact 2.7.2/3.2.2 with patched xml.dom.minidom.Document.toprettyxml() method.
Added:
packages/python-docutils/trunk/debian/patches/fix-docutilsxmltestcase-debian.diff
Modified:
packages/python-docutils/trunk/debian/changelog
packages/python-docutils/trunk/debian/patches/series
Modified: packages/python-docutils/trunk/debian/changelog
===================================================================
--- packages/python-docutils/trunk/debian/changelog 2012-03-02 23:13:02 UTC (rev 20661)
+++ packages/python-docutils/trunk/debian/changelog 2012-03-03 00:40:13 UTC (rev 20662)
@@ -11,8 +11,12 @@
* Fix paths in the auto-generated manual pages.
* Split section âUsageâ into âSynopsisâ and âDescriptionâ in the manual
pages.
+ * Fool DocutilsXMLTestCase into thinking that Python version is 2.7.3/3.2.3
+ when it's in fact 2.7.2/3.2.2 with patched
+ xml.dom.minidom.Document.toprettyxml() method (closes: #645369).
+ (fix-docutilsxmltestcase.diff).
- -- Jakub Wilk <jwilk at debian.org> Fri, 02 Mar 2012 02:20:55 +0100
+ -- Jakub Wilk <jwilk at debian.org> Sat, 03 Mar 2012 01:32:18 +0100
python-docutils (0.8.1-5) unstable; urgency=low
Added: packages/python-docutils/trunk/debian/patches/fix-docutilsxmltestcase-debian.diff
===================================================================
--- packages/python-docutils/trunk/debian/patches/fix-docutilsxmltestcase-debian.diff (rev 0)
+++ packages/python-docutils/trunk/debian/patches/fix-docutilsxmltestcase-debian.diff 2012-03-03 00:40:13 UTC (rev 20662)
@@ -0,0 +1,26 @@
+Description: Forge sys.version_info for DocutilsXMLTestCase.
+ Fool DocutilsXMLTestCase into thinking that Python version is 2.7.3/3.2.3 when
+ it's in fact 2.7.2/3.2.2 with patched xml.dom.minidom.Document.toprettyxml()
+ method.
+Author: Jakub Wilk <jwilk at debian.org>
+Bug-Debian: http://bugs.debian.org/645369
+Forwarded: not-needed
+Last-Update: 2012-03-03
+
+--- a/test/test_writers/test_docutils_xml.py
++++ b/test/test_writers/test_docutils_xml.py
+@@ -15,6 +15,14 @@
+ import docutils.core
+ from docutils._compat import b
+
++if sys.version_info[:3] in [(2, 7, 2), (3, 2, 2)]:
++ import xml.dom.minidom as minidom
++ if minidom.parseString('<x><y>z</y></x>').toprettyxml() == '<?xml version="1.0" ?>\n<x>\n\t<y>z</y>\n</x>\n':
++ sys_version_info = sys.version_info[:2] + (3, 'candidate', 0)
++ class sys:
++ version_info = sys_version_info
++ del sys_version_info
++ del minidom
+
+ class DocutilsXMLTestCase(DocutilsTestSupport.StandardTestCase):
+
Modified: packages/python-docutils/trunk/debian/patches/series
===================================================================
--- packages/python-docutils/trunk/debian/patches/series 2012-03-02 23:13:02 UTC (rev 20661)
+++ packages/python-docutils/trunk/debian/patches/series 2012-03-03 00:40:13 UTC (rev 20662)
@@ -10,5 +10,6 @@
fix-error-reporting-encoding-issues.diff
fix-io-encoding-issues.diff
fix-docutilsxmltestcase.diff
+fix-docutilsxmltestcase-debian.diff
no-test-skipping.diff
move-data-to-usr-share.diff
More information about the Python-modules-commits
mailing list