mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Advanced deprecation warnings for Django 1.7.
This commit is contained in:
parent
8b9b8d3bda
commit
acd7b34aaf
41 changed files with 80 additions and 81 deletions
|
@ -534,7 +534,7 @@ class TemplateTests(TransRealMixin, TestCase):
|
|||
try:
|
||||
with warnings.catch_warnings():
|
||||
# Ignore pending deprecations of the old syntax of the 'cycle' and 'firstof' tags.
|
||||
warnings.filterwarnings("ignore", category=PendingDeprecationWarning, module='django.template.base')
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning, module='django.template.base')
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue