summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index f10d9ea889..5263040212 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -612,8 +612,10 @@ class TemplateTests(TestCase):
try:
try:
with warnings.catch_warnings():
- # Ignore pending deprecations of the old syntax of the 'cycle' and 'firstof' tags.
+ # Ignore deprecations of the old syntax of the 'cycle' and 'firstof' tags.
warnings.filterwarnings("ignore", category=DeprecationWarning, module='django.template.base')
+ # Ignore pending deprecations of loading 'ssi' and 'url' tags from future.
+ warnings.filterwarnings("ignore", category=PendingDeprecationWarning, module='django.templatetags.future')
test_template = loader.get_template(name)
except ShouldNotExecuteException:
failures.append("Template test (Cached='%s', TEMPLATE_STRING_IF_INVALID='%s', TEMPLATE_DEBUG=%s): %s -- FAILED. Template loading invoked method that shouldn't have been invoked." % (is_cached, invalid_str, template_debug, name))