diff options
| author | Zbigniew Siciarz <antyqjon@gmail.com> | 2014-02-16 13:23:16 +0100 |
|---|---|---|
| committer | Zbigniew Siciarz <antyqjon@gmail.com> | 2014-02-16 13:25:21 +0100 |
| commit | 74d4d58b62f3a68bf77b983bc8a475a130d1f95e (patch) | |
| tree | 322cc608f0ea02dc85bc3b19a71f417fb0d3b8df /tests | |
| parent | 653527de40115ddab04a7dcc69134ee4be45fa01 (diff) | |
Fixed #21939 -- Deprecated loading ssi/url tags from future.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/template_tests/tests.py | 4 |
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)) |
