summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-03-21 21:40:04 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-03-21 21:40:04 +0100
commitad3942d325fff29e78d02b454b8fec3afb3871a7 (patch)
tree9ec9499d45f79184a0e8b645eea0267770ecb71f
parentad83d37bf8e47a9704948df3035e09a5e1584c04 (diff)
The cycle and firstof tags no longer raise warnings.
Refs #17906.
-rw-r--r--tests/template_tests/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 5020ccd579..f6cd354046 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -17,7 +17,7 @@ from django.template.loaders import app_directories, filesystem, cached
from django.test import RequestFactory, TestCase
from django.test.utils import (setup_test_template_loader,
restore_template_loaders, override_settings, extend_sys_path)
-from django.utils.deprecation import RemovedInDjango18Warning, RemovedInDjango19Warning
+from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.encoding import python_2_unicode_compatible
from django.utils.formats import date_format
from django.utils._os import upath
@@ -593,8 +593,6 @@ class TemplateTests(TestCase):
try:
try:
with warnings.catch_warnings():
- # Ignore deprecations of the old syntax of the 'cycle' and 'firstof' tags.
- warnings.filterwarnings("ignore", category=RemovedInDjango18Warning, module='django.template.base')
# Ignore pending deprecations of loading 'ssi' and 'url' tags from future.
warnings.filterwarnings("ignore", category=RemovedInDjango19Warning, module='django.templatetags.future')
test_template = loader.get_template(name)