Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a PendingDeprecationWarning in template_tests.

  • Loading branch information...
commit b2c697b02911e6d02455e27afd33747f793103b6 1 parent 1b100d7
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/template_tests/tests.py
View
2  tests/template_tests/tests.py
@@ -444,7 +444,7 @@ def gen():
def test_ifchanged_render_once(self):
""" Test for ticket #19890. The content of ifchanged template tag was
rendered twice."""
- template = Template('{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
+ template = Template('{% load cycle from future %}{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
output = template.render(Context({}))
self.assertEqual(output, '1st time')
Please sign in to comment.
Something went wrong with that request. Please try again.