diff options
Diffstat (limited to 'tests/staticfiles_tests/tests.py')
| -rw-r--r-- | tests/staticfiles_tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py index 67afd25351..5dc630f004 100644 --- a/tests/staticfiles_tests/tests.py +++ b/tests/staticfiles_tests/tests.py @@ -8,7 +8,7 @@ import shutil import sys import unittest -from django.template import loader, Context +from django.template import Context, Template from django.conf import settings from django.core.cache.backends.base import BaseCache from django.core.exceptions import ImproperlyConfigured @@ -97,7 +97,7 @@ class BaseStaticFilesTestCase(object): def render_template(self, template, **kwargs): if isinstance(template, six.string_types): - template = loader.get_template_from_string(template) + template = Template(template) return template.render(Context(kwargs)).strip() def static_template_snippet(self, path, asvar=False): |
