[Python-modules-commits] r30274 - in packages/django-markupfield/trunk/debian (3 files)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Wed Aug 27 13:20:34 UTC 2014
Date: Wednesday, August 27, 2014 @ 13:20:33
Author: fladi-guest
Revision: 30274
Add django-1.7.patch to fix tests with Django 1.7c3 (Closes: #755640).
Added:
packages/django-markupfield/trunk/debian/patches/
packages/django-markupfield/trunk/debian/patches/django-1.7.patch
packages/django-markupfield/trunk/debian/patches/series
Added: packages/django-markupfield/trunk/debian/patches/django-1.7.patch
===================================================================
--- packages/django-markupfield/trunk/debian/patches/django-1.7.patch (rev 0)
+++ packages/django-markupfield/trunk/debian/patches/django-1.7.patch 2014-08-27 13:20:33 UTC (rev 30274)
@@ -0,0 +1,26 @@
+Description: Use tuple for choices to un-break Django 1.7c3
+ Django 1.7c3 breaks on non-subscriptable objects, therefor changing the choices
+ in the tests from list to tuple.
+ This patch should be dropped once the #23112 fix is shipped in the Debian
+ Django package.
+Author: Michael Fladischer <FladischerMichael at fladi.at>
+Last-Update: 2014-08-27
+Bug: https://code.djangoproject.com/ticket/23112
+Forwarded: not-needed
+
+--- a/markupfield/tests/tests.py
++++ b/markupfield/tests/tests.py
+@@ -11,11 +11,11 @@
+ from markupfield.tests.models import Post, Article, Concrete
+
+ from django.forms.models import modelform_factory
+-ArticleForm = modelform_factory(Article, fields=['normal_field', 'normal_field_markup_type',
++ArticleForm = modelform_factory(Article, fields=('normal_field', 'normal_field_markup_type',
+ 'markup_choices_field',
+ 'markup_choices_field_markup_type',
+ 'default_field', 'default_field_markup_type',
+- 'markdown_field'])
++ 'markdown_field'))
+
+
+ class MarkupFieldTestCase(TestCase):
Added: packages/django-markupfield/trunk/debian/patches/series
===================================================================
--- packages/django-markupfield/trunk/debian/patches/series (rev 0)
+++ packages/django-markupfield/trunk/debian/patches/series 2014-08-27 13:20:33 UTC (rev 30274)
@@ -0,0 +1 @@
+django-1.7.patch
More information about the Python-modules-commits
mailing list