[Python-modules-commits] r22868 - in packages/pymarkups/trunk/debian (4 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Wed Oct 31 17:26:04 UTC 2012


    Date: Wednesday, October 31, 2012 @ 17:26:02
  Author: mitya57-guest
Revision: 22868

debian/patches/fix_test_with_new_docutils.patch:
Fix test suite failure with trunk version of python-docutils (patch
taken from upstream SVN).

Added:
  packages/pymarkups/trunk/debian/patches/
  packages/pymarkups/trunk/debian/patches/fix_test_with_new_docutils.patch
  packages/pymarkups/trunk/debian/patches/series
Modified:
  packages/pymarkups/trunk/debian/changelog

Modified: packages/pymarkups/trunk/debian/changelog
===================================================================
--- packages/pymarkups/trunk/debian/changelog	2012-10-29 14:50:17 UTC (rev 22867)
+++ packages/pymarkups/trunk/debian/changelog	2012-10-31 17:26:02 UTC (rev 22868)
@@ -1,5 +1,8 @@
 pymarkups (0.2.2-1) UNRELEASED; urgency=low
 
-  * Initial release (Closes: #687824)
+  * Initial release (Closes: #687824).
+  * debian/patches/fix_test_with_new_docutils.patch:
+    Fix test suite failure with trunk version of python-docutils (patch
+    taken from upstream SVN).
 
- -- Dmitry Shachnev <mitya57 at gmail.com>  Tue, 02 Oct 2012 11:43:28 +0400
+ -- Dmitry Shachnev <mitya57 at gmail.com>  Wed, 31 Oct 2012 21:24:58 +0400

Added: packages/pymarkups/trunk/debian/patches/fix_test_with_new_docutils.patch
===================================================================
--- packages/pymarkups/trunk/debian/patches/fix_test_with_new_docutils.patch	                        (rev 0)
+++ packages/pymarkups/trunk/debian/patches/fix_test_with_new_docutils.patch	2012-10-31 17:26:02 UTC (rev 22868)
@@ -0,0 +1,26 @@
+=== modified file 'tests/test_restructuredtext.py'
+--- a/tests/test_restructuredtext.py	2012-10-10 16:11:49 +0000
++++ b/tests/test_restructuredtext.py	2012-10-23 16:17:50 +0000
+@@ -5,12 +5,6 @@
+ import sys
+ from markups import ReStructuredTextMarkup
+ 
+-math_output = \
+-r'''<p>Hello, <span class="math">
+-\(2+2\)</span>
+-!</p>
+-'''
+-
+ basic_text = \
+ '''Hello, world!
+ =============
+@@ -43,7 +37,7 @@
+ 	if not '<script' in js:
+ 		fail_test('mathjax script not included')
+ 	body = markup.get_document_body('Hello, :math:`2+2`!')
+-	if body != math_output:
++	if not ('<span class="math">' in body and r'\(2+2\)</span>' in body):
+ 		fail_test('math not working')
+ 
+ if __name__ == '__main__':
+

Added: packages/pymarkups/trunk/debian/patches/series
===================================================================
--- packages/pymarkups/trunk/debian/patches/series	                        (rev 0)
+++ packages/pymarkups/trunk/debian/patches/series	2012-10-31 17:26:02 UTC (rev 22868)
@@ -0,0 +1 @@
+fix_test_with_new_docutils.patch




More information about the Python-modules-commits mailing list