mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #23269 -- Deprecated django.utils.remove_tags() and removetags filter.
Also the unused, undocumented django.utils.html.strip_entities() function.
This commit is contained in:
parent
deed00c0d8
commit
e122facbd8
8 changed files with 62 additions and 10 deletions
|
@ -590,7 +590,8 @@ class TemplateTests(TestCase):
|
|||
# Ignore deprecations of using the wrong number of variables with the 'for' tag.
|
||||
# and warnings for {% url %} reversing by dotted path
|
||||
warnings.filterwarnings("ignore", category=RemovedInDjango20Warning, module="django.template.defaulttags")
|
||||
# Ignore deprecations of old style unordered_list.
|
||||
# Ignore deprecations of old style unordered_list
|
||||
# and removetags.
|
||||
warnings.filterwarnings("ignore", category=RemovedInDjango20Warning, module="django.template.defaultfilters")
|
||||
output = self.render(test_template, vals)
|
||||
except ShouldNotExecuteException:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue