summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-11-24 22:03:12 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-11-24 22:05:25 +0100
commitf1afd57a32c7eb2a674d3f7e2d6341b23f7afee4 (patch)
treedfafef56c882745643a1ba22a2fe49d619f22fa7
parenta12db81135b56a9d33b369c47b79a61d8dbbf268 (diff)
[1.5.x] Used a django.test.TestCase for compatibility with @override_settings.
These tests were silently skipped. Backport of 95edeab.
-rw-r--r--tests/regressiontests/templates/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
index c95b5bfa3c..875035bc2e 100644
--- a/tests/regressiontests/templates/tests.py
+++ b/tests/regressiontests/templates/tests.py
@@ -23,7 +23,7 @@ from django.template import base as template_base, RequestContext, Template, Con
from django.core import urlresolvers
from django.template import loader
from django.template.loaders import app_directories, filesystem, cached
-from django.test import RequestFactory
+from django.test import RequestFactory, TestCase
from django.test.utils import (setup_test_template_loader,
restore_template_loaders, override_settings)
from django.utils import unittest
@@ -156,7 +156,7 @@ class UTF8Class:
return 'ŠĐĆŽćžšđ'
@override_settings(MEDIA_URL="/media/", STATIC_URL="/static/")
-class Templates(unittest.TestCase):
+class Templates(TestCase):
def test_loaders_security(self):
ad_loader = app_directories.Loader()