[Python-modules-commits] [sorl-thumbnail] 10/17: skip incompatible test for Django 1.8/1.9

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Jan 6 21:05:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository sorl-thumbnail.

commit e0d51e37a53db15ec009bb8b2c3a431fae8fb313
Author: W. Martin Borgert <debacle at debian.org>
Date:   Wed Jan 6 21:18:12 2016 +0100

    skip incompatible test for Django 1.8/1.9
---
 tests/thumbnail_tests/test_templatetags.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/thumbnail_tests/test_templatetags.py b/tests/thumbnail_tests/test_templatetags.py
index 0dbef1e..557c2d2 100644
--- a/tests/thumbnail_tests/test_templatetags.py
+++ b/tests/thumbnail_tests/test_templatetags.py
@@ -8,6 +8,7 @@ from PIL import Image
 
 from django.template.loader import render_to_string
 from django.test import Client, TestCase
+from django import VERSION
 import pytest
 
 from sorl.thumbnail.conf import settings
@@ -167,6 +168,7 @@ class TemplateTestCaseB(BaseTestCase):
 
 
 class TemplateTestCaseClient(TestCase):
+    @unittest.skipIf(VERSION[0] == 1 and VERSION[1] in [8, 9], "Test incompatible with Django 1.8/1.9")
     def test_empty_error(self):
         with override_custom_settings(settings, THUMBNAIL_DEBUG=False):
             from django.core.mail import outbox

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sorl-thumbnail.git



More information about the Python-modules-commits mailing list