Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Minor cleanups in templates test imports

  • Loading branch information...
commit 335a060fa6a919fc5eb1ff22315f9b3ae44438b7 1 parent 687d2e9
@claudep claudep authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 tests/regressiontests/templates/
8 tests/regressiontests/templates/
@@ -19,10 +19,9 @@
from urlparse import urljoin
from django import template
-from django.template import (base as template_base, Context, RequestContext,
- Template)
from django.core import urlresolvers
-from django.template import loader
+from django.template import (base as template_base, loader, Context,
+ RequestContext, Template, TemplateSyntaxError)
from django.template.loaders import app_directories, filesystem, cached
from django.test import RequestFactory, TestCase
from django.test.utils import (setup_test_template_loader,
@@ -365,8 +364,6 @@ def test_token_smart_split(self):
@override_settings(SETTINGS_MODULE=None, TEMPLATE_DEBUG=True)
def test_url_reverse_no_settings_module(self):
# Regression test for #9005
- from django.template import Template, Context
t = Template('{% url will_not_match %}')
c = Context()
with self.assertRaises(urlresolvers.NoReverseMatch):
@@ -417,7 +414,6 @@ def test_no_wrapped_exception(self):
def test_invalid_block_suggestion(self):
# See #7876
- from django.template import Template, TemplateSyntaxError
t = Template("{% if 1 %}lala{% endblock %}{% endif %}")
except TemplateSyntaxError as e:
Please sign in to comment.
Something went wrong with that request. Please try again.