summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-05-11 11:41:10 -0400
committerTim Graham <timograham@gmail.com>2016-05-11 11:41:10 -0400
commit60b095cc4c3dbf8bf41f7ce0939b0c90dbcc9b1a (patch)
tree8c75d3b383c8b2e43b40077c1f8df2a49823eb2c /tests/template_tests
parentbaf3ec2e296a900a48181e2924753fef2e123731 (diff)
Refs #24046 -- Fixed a template test when run in reverse.
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/filter_tests/test_chaining.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/filter_tests/test_chaining.py b/tests/template_tests/filter_tests/test_chaining.py
index 453e2a335f..1c12e252a0 100644
--- a/tests/template_tests/filter_tests/test_chaining.py
+++ b/tests/template_tests/filter_tests/test_chaining.py
@@ -1,6 +1,7 @@
import warnings
from django.test import SimpleTestCase, ignore_warnings
+from django.test.utils import reset_warning_registry
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.safestring import mark_safe
@@ -41,6 +42,7 @@ class ChainingTests(SimpleTestCase):
# Using a filter that forces safeness does not lead to double-escaping
@setup({'chaining05': '{{ a|escape|capfirst }}'})
def test_chaining05(self):
+ reset_warning_registry()
with warnings.catch_warnings(record=True) as warns:
warnings.simplefilter('always')
output = self.engine.render_to_string('chaining05', {'a': 'a < b'})