|
@@ -122,6 +122,18 @@ class TemplateTests(SimpleTestCase):
|
|
|
t.render(Context())
|
|
|
self.assertEqual(e.exception.template_debug['during'], '{% badtag %}')
|
|
|
|
|
|
+ def test_compile_tag_error_27956(self):
|
|
|
+ """Errors in a child of {% extends %} are displayed correctly."""
|
|
|
+ engine = Engine(
|
|
|
+ app_dirs=True,
|
|
|
+ debug=True,
|
|
|
+ libraries={'tag_27584': 'template_tests.templatetags.tag_27584'},
|
|
|
+ )
|
|
|
+ t = engine.get_template('27956_child.html')
|
|
|
+ with self.assertRaises(TemplateSyntaxError) as e:
|
|
|
+ t.render(Context())
|
|
|
+ self.assertEqual(e.exception.template_debug['during'], '{% badtag %}')
|
|
|
+
|
|
|
def test_super_errors(self):
|
|
|
"""
|
|
|
#18169 -- NoReverseMatch should not be silence in block.super.
|