summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_if.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-12 13:20:44 -0500
committerTim Graham <timograham@gmail.com>2015-01-12 13:20:44 -0500
commit9f51d0c86d9348349d921c393d6ffcbbfd521192 (patch)
treead1323ddf49c4c3108111a3498334d33c37a71e4 /tests/template_tests/syntax_tests/test_if.py
parent26a92619f62aeb6f60e15c62e8322c96744eff26 (diff)
Fixed test from refs #23913 when running tests in reverse.
Diffstat (limited to 'tests/template_tests/syntax_tests/test_if.py')
-rw-r--r--tests/template_tests/syntax_tests/test_if.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/syntax_tests/test_if.py b/tests/template_tests/syntax_tests/test_if.py
index 357841444a..9f207c4114 100644
--- a/tests/template_tests/syntax_tests/test_if.py
+++ b/tests/template_tests/syntax_tests/test_if.py
@@ -2,6 +2,7 @@ import warnings
from django.template import TemplateSyntaxError
from django.test import ignore_warnings, SimpleTestCase
+from django.test.utils import reset_warning_registry
from django.utils.deprecation import RemovedInDjango20Warning
from ..utils import setup, TestObj
@@ -528,6 +529,7 @@ class IfTagTests(SimpleTestCase):
@setup({'if-tag-eq-deprecated': '{% if foo = bar %}yes{% else %}no{% endif %}'},
test_once=True)
def test_if_tag_eq_deprecated(self):
+ reset_warning_registry()
with warnings.catch_warnings(record=True) as warns:
warnings.simplefilter('always')
output = self.engine.render_to_string('if-tag-eq-deprecated')