summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-31 13:44:38 -0400
committerGitHub <noreply@github.com>2016-08-31 13:44:38 -0400
commit59afe61a970dd60df388e7cda9041ef3c0e770cb (patch)
treeb5741f718e50a7fca8f6d1d54db46078ce9630da /tests/template_tests/syntax_tests
parent65ec8fa8ca56a5378345375e1079025c96d0b833 (diff)
Fixed #27140 -- Prevented template rendering from hiding a property's TypeError.
Diffstat (limited to 'tests/template_tests/syntax_tests')
-rw-r--r--tests/template_tests/syntax_tests/test_filter_syntax.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/template_tests/syntax_tests/test_filter_syntax.py b/tests/template_tests/syntax_tests/test_filter_syntax.py
index e9f0491d6e..3e524a61eb 100644
--- a/tests/template_tests/syntax_tests/test_filter_syntax.py
+++ b/tests/template_tests/syntax_tests/test_filter_syntax.py
@@ -237,3 +237,8 @@ class FilterSyntaxTests(SimpleTestCase):
"""
with self.assertRaises(AttributeError):
self.engine.render_to_string('filter-syntax25', {'var': SomeClass()})
+
+ @setup({'template': '{{ var.type_error_attribute }}'})
+ def test_type_error_attribute(self):
+ with self.assertRaises(TypeError):
+ self.engine.render_to_string('template', {'var': SomeClass()})