[Python-modules-commits] r20989 - in packages/python-django/trunk/debian (3 files)
hertzog at users.alioth.debian.org
hertzog at users.alioth.debian.org
Sat Mar 31 12:18:35 UTC 2012
Date: Saturday, March 31, 2012 @ 12:18:31
Author: hertzog
Revision: 20989
Add 01_disable_broken_test.diff to disable a test that fails with
the current python 2.7 version in Debian.
Added:
packages/python-django/trunk/debian/patches/01_disable_broken_test.diff
Modified:
packages/python-django/trunk/debian/changelog
packages/python-django/trunk/debian/patches/series
Modified: packages/python-django/trunk/debian/changelog
===================================================================
--- packages/python-django/trunk/debian/changelog 2012-03-31 11:14:53 UTC (rev 20988)
+++ packages/python-django/trunk/debian/changelog 2012-03-31 12:18:31 UTC (rev 20989)
@@ -12,6 +12,8 @@
renamed file.
* Drop 07_fix_for_sphinx1.1.2.diff merged upstream.
* Drop 08_fix_test_week_view_allow_future.diff, merged upstream.
+ * Add 01_disable_broken_test.diff to disable a test that fails with
+ the current python 2.7 version in Debian.
-- Raphaël Hertzog <hertzog at debian.org> Sat, 31 Mar 2012 10:14:40 +0200
Added: packages/python-django/trunk/debian/patches/01_disable_broken_test.diff
===================================================================
--- packages/python-django/trunk/debian/patches/01_disable_broken_test.diff (rev 0)
+++ packages/python-django/trunk/debian/patches/01_disable_broken_test.diff 2012-03-31 12:18:31 UTC (rev 20989)
@@ -0,0 +1,26 @@
+Description: Disable non working test
+ The HTMLParser in recent Python versions accepts "<!--" which used
+ to be rejected up to now. The test suite ensure that HTMLParser
+ rejected those and is thus currently broken.
+ .
+ Until we have a proper upstream fix, we just disable the non-working
+ test.
+Author: Raphaël Hertzog <hertzog at debian.org>
+Bug: https://code.djangoproject.com/ticket/18027
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tests/regressiontests/test_utils/tests.py
++++ b/tests/regressiontests/test_utils/tests.py
+@@ -422,8 +422,9 @@ class HTMLEqualTests(TestCase):
+ self.assertHTMLEqual('', '<p>')
+ with self.assertRaises(HTMLParseError):
+ parse_html('</p>')
+- with self.assertRaises(HTMLParseError):
+- parse_html('<!--')
++ # Disabled because it does not work as expected with Python >= 2.7.3
++ #with self.assertRaises(HTMLParseError):
++ # parse_html('<!--')
+
+ def test_contains_html(self):
+ response = HttpResponse('''<body>
Modified: packages/python-django/trunk/debian/patches/series
===================================================================
--- packages/python-django/trunk/debian/patches/series 2012-03-31 11:14:53 UTC (rev 20988)
+++ packages/python-django/trunk/debian/patches/series 2012-03-31 12:18:31 UTC (rev 20989)
@@ -1,3 +1,4 @@
+01_disable_broken_test.diff
02_disable-sources-in-sphinxdoc.diff
03_manpage.diff
04_hyphen-manpage.diff
More information about the Python-modules-commits
mailing list