[Python-modules-commits] r24417 - in packages/python-docutils/trunk/debian (3 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Thu May 16 21:43:14 UTC 2013
Date: Thursday, May 16, 2013 @ 21:43:06
Author: jwilk
Revision: 24417
Add patch to make the test suite expect that urllib.requests in Python ?\226?\137?\165 3.3.2 use repr() when reporting unknown URLs.
Added:
packages/python-docutils/trunk/debian/patches/unknown-url-exc-use-repr.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 2013-05-16 20:35:52 UTC (rev 24416)
+++ packages/python-docutils/trunk/debian/changelog 2013-05-16 21:43:06 UTC (rev 24417)
@@ -10,11 +10,14 @@
PIL.Image.open() when running under Python 3.X (closes: #708159).
* Add patch (python3.3-odt-writer.diff) to port the ODT writer to Python 3.3
ElementTree API (closes: #692285).
+ * Add patch (unknown-url-exc-use-repr.diff) to make the test suite expect
+ that urllib.requests in Python ⥠3.3.2 use repr() when reporting unknown
+ URLs (closes: #708565).
* Add Forwarded and Last-Update fields to all patch headers that were
missing them.
* Refresh patches.
- -- Jakub Wilk <jwilk at debian.org> Thu, 16 May 2013 22:35:20 +0200
+ -- Jakub Wilk <jwilk at debian.org> Thu, 16 May 2013 23:31:51 +0200
python-docutils (0.10-2) unstable; urgency=low
Modified: packages/python-docutils/trunk/debian/patches/series
===================================================================
--- packages/python-docutils/trunk/debian/patches/series 2013-05-16 20:35:52 UTC (rev 24416)
+++ packages/python-docutils/trunk/debian/patches/series 2013-05-16 21:43:06 UTC (rev 24417)
@@ -1,6 +1,7 @@
strict-csv-parser.diff
python3-pil-no-bytestrings.diff
python3.3-odt-writer.diff
+unknown-url-exc-use-repr.diff
math-output-html.diff
fix-buildhtml-progress.diff
iepngfix-license.diff
Added: packages/python-docutils/trunk/debian/patches/unknown-url-exc-use-repr.diff
===================================================================
--- packages/python-docutils/trunk/debian/patches/unknown-url-exc-use-repr.diff (rev 0)
+++ packages/python-docutils/trunk/debian/patches/unknown-url-exc-use-repr.diff 2013-05-16 21:43:06 UTC (rev 24417)
@@ -0,0 +1,41 @@
+Description: expect that urllib.requests in Python ⥠3.3.2 use repr() when reporting unknown URLs
+Bug: http://sourceforge.net/p/docutils/bugs/235/
+Bug-Debian: http://bugs.debian.org/708565
+Origin: upstream, http://sourceforge.net/p/docutils/code/7663/
+Last-Update: 2013-05-16
+
+--- a/test/test_parsers/test_rst/test_directives/test_tables.py
++++ b/test/test_parsers/test_rst/test_directives/test_tables.py
+@@ -12,6 +12,7 @@
+
+ import os
+ import csv
++import sys
+ from docutils.parsers.rst.directives import tables
+
+
+@@ -32,6 +33,10 @@
+ else:
+ unichr_exception_string = str(unichr_exception)
+
++csv_unknown_url = "'bogus.csv'"
++if sys.version_info < (3,3,2):
++ csv_unknown_url = "bogus.csv"
++
+ def null_bytes():
+ import csv
+ csv_data = open(utf_16_csv, 'rb').read()
+@@ -578,11 +583,11 @@
+ <system_message level="4" line="1" source="test data" type="SEVERE">
+ <paragraph>
+ Problems with "csv-table" directive URL "bogus.csv":
+- unknown url type: bogus.csv.
++ unknown url type: %s.
+ <literal_block xml:space="preserve">
+ .. csv-table:: bad URL
+ :url: bogus.csv
+-"""],
++""" % csv_unknown_url],
+ ["""\
+ .. csv-table:: column mismatch
+ :widths: 10,20
More information about the Python-modules-commits
mailing list