Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The cycle and firstof tags no longer raise warnings.

Refs #17906.
  • Loading branch information...
commit ad3942d325fff29e78d02b454b8fec3afb3871a7 1 parent ad83d37
@aaugustin aaugustin authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 tests/template_tests/tests.py
View
4 tests/template_tests/tests.py
@@ -17,7 +17,7 @@
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 @@ def test_templates(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.