summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-02-16 19:28:48 -0500
committerTim Graham <timograham@gmail.com>2014-02-28 07:18:45 -0500
commit72b080c2c8a5ab7930b13688b2865ebc5b636687 (patch)
tree30780a69b1e895dff4bb7e19dc378b0a25e746b0 /tests
parentc23b3717be71e4b2e5a32f156ef0a7b4703d012d (diff)
Removed Django 1.5 upgrade hints for {% url %} tag.
Refs #19280 and Refs #19392.
Diffstat (limited to 'tests')
-rw-r--r--tests/template_tests/tests.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 0cfaf9ec09..dee11e4bba 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -431,20 +431,6 @@ class TemplateRegressionTests(TestCase):
self.assertTrue(depth > 5,
"The traceback context was lost when reraising the traceback. See #19827")
- def test_url_explicit_exception_for_old_syntax_at_run_time(self):
- # Regression test for #19280
- t = Template('{% url path.to.view %}') # not quoted = old syntax
- c = Context()
- with six.assertRaisesRegex(self, urlresolvers.NoReverseMatch,
- "The syntax changed in Django 1.5, see the docs."):
- t.render(c)
-
- def test_url_explicit_exception_for_old_syntax_at_compile_time(self):
- # Regression test for #19392
- with six.assertRaisesRegex(self, template.TemplateSyntaxError,
- "The syntax of 'url' changed in Django 1.5, see the docs."):
- Template('{% url my-view %}') # not a variable = old syntax
-
@override_settings(DEBUG=True, TEMPLATE_DEBUG=True)
def test_no_wrapped_exception(self):
"""