diff options
Diffstat (limited to 'debian/patches/add-django-1.7-compat-with-new-django.setup.patch')
-rw-r--r-- | debian/patches/add-django-1.7-compat-with-new-django.setup.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/add-django-1.7-compat-with-new-django.setup.patch b/debian/patches/add-django-1.7-compat-with-new-django.setup.patch new file mode 100644 index 0000000..f2cf540 --- /dev/null +++ b/debian/patches/add-django-1.7-compat-with-new-django.setup.patch @@ -0,0 +1,18 @@ +Description: Make unit tests work with Django 1.7 +Author: Thomas Goirand <zigo@debian.org> +Bug-Debian: https://bugs.debian.org/764837 +Forwarded: no +Last-Update: 2014-10-12 + +--- factory-boy-2.4.1.orig/tests/test_django.py ++++ factory-boy-2.4.1/tests/test_django.py +@@ -50,6 +50,9 @@ from . import tools + if django is not None: + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.djapp.settings') + ++ if hasattr(django, 'setup'): ++ django.setup() ++ + from django import test as django_test + from django.conf import settings + from django.db import models as django_models |