Skip to content

Commit b2c697b

Browse files
committed
Fixed a PendingDeprecationWarning in template_tests.
1 parent 1b100d7 commit b2c697b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/template_tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def gen():
444444
def test_ifchanged_render_once(self):
445445
""" Test for ticket #19890. The content of ifchanged template tag was
446446
rendered twice."""
447-
template = Template('{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
447+
template = Template('{% load cycle from future %}{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
448448
output = template.render(Context({}))
449449
self.assertEqual(output, '1st time')
450450

0 commit comments

Comments
 (0)