Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a PendingDeprecationWarning in template_tests.

  • Loading branch information...
commit b2c697b02911e6d02455e27afd33747f793103b6 1 parent 1b100d7
Aymeric Augustin authored February 27, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/template_tests/tests.py
2  tests/template_tests/tests.py
@@ -444,7 +444,7 @@ def gen():
444 444
     def test_ifchanged_render_once(self):
445 445
         """ Test for ticket #19890. The content of ifchanged template tag was
446 446
         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 %}')
448 448
         output = template.render(Context({}))
449 449
         self.assertEqual(output, '1st time')
450 450
 

0 notes on commit b2c697b

Please sign in to comment.
Something went wrong with that request. Please try again.