[Python-modules-commits] r18231 - in packages/python-docutils/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Mon Aug 22 00:38:38 UTC 2011


    Date: Monday, August 22, 2011 @ 00:38:36
  Author: jwilk
Revision: 18231

Fix NameError exceptions in the test suite (test_error_reporting.diff).

Added:
  packages/python-docutils/trunk/debian/patches/test-error-reporting.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	2011-08-21 23:22:11 UTC (rev 18230)
+++ packages/python-docutils/trunk/debian/changelog	2011-08-22 00:38:36 UTC (rev 18231)
@@ -17,8 +17,9 @@
   * Install XML/SGML catalogs (closes: #531170).
     + Add xml-core to Build-Depends-Indep.
   * Emacs major mode: use ‘sensible-browser’ to preview S5 slides.
+  * Fix NameError exceptions in the test suite (test_error_reporting.diff).
 
- -- Jakub Wilk <jwilk at debian.org>  Sun, 21 Aug 2011 22:27:08 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Mon, 22 Aug 2011 02:37:59 +0200
 
 python-docutils (0.7-4) unstable; urgency=low
 

Modified: packages/python-docutils/trunk/debian/patches/series
===================================================================
--- packages/python-docutils/trunk/debian/patches/series	2011-08-21 23:22:11 UTC (rev 18230)
+++ packages/python-docutils/trunk/debian/patches/series	2011-08-22 00:38:36 UTC (rev 18231)
@@ -4,4 +4,5 @@
 13_install_roman.diff
 15_emacs_debian_paths.diff
 emacs-sensible-browser.diff
+test-error-reporting.diff
 move-data-to-usr-share.diff

Added: packages/python-docutils/trunk/debian/patches/test-error-reporting.diff
===================================================================
--- packages/python-docutils/trunk/debian/patches/test-error-reporting.diff	                        (rev 0)
+++ packages/python-docutils/trunk/debian/patches/test-error-reporting.diff	2011-08-22 00:38:36 UTC (rev 18231)
@@ -0,0 +1,26 @@
+Description: Fix NameError exceptions in test_error_reporting.
+Author: Jakub Wilk <jwilk at debian.org>
+Bug: http://sourceforge.net/tracker/?func=detail&aid=3395887&group_id=38414&atid=422030
+Forwarded: no
+Last-Update: 2011-08-22
+
+--- a/test/test_error_reporting.py
++++ b/test/test_error_reporting.py
+@@ -236,7 +236,7 @@
+     except UnicodeEncodeError:
+         try:
+             open(u'\xfc'.encode(sys.getfilesystemencoding(), 'replace'))
+-        except IOError:
++        except IOError, e:
+             uioe = e
+     try:
+         os.chdir(b('\xfc'))
+@@ -249,7 +249,7 @@
+     except UnicodeEncodeError:
+         try:
+             os.chdir(u'\xfc'.encode(sys.getfilesystemencoding(), 'replace'))
+-        except OSError:
++        except OSError, e:
+             uose = e
+     # wrapped test data:
+     wbioe = SafeString(bioe)




More information about the Python-modules-commits mailing list