From c1d795df454b9f6500d3b704e68bddd10f0e17eb Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 22 Feb 2010 23:42:53 +0000 Subject: [PATCH] Clarified a comment from [11687]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12500 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/templates/filters.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/regressiontests/templates/filters.py b/tests/regressiontests/templates/filters.py index c39e34b999..82a056e7dc 100644 --- a/tests/regressiontests/templates/filters.py +++ b/tests/regressiontests/templates/filters.py @@ -334,13 +334,11 @@ def get_filter_tests(): #Ticket 9520: Make sure |date doesn't blow up on non-dates 'date03': (r'{{ d|date:"m" }}', {'d': 'fail_string'}, ''), - # base tests for add that assert, that old behaviour, which means - # trying to add two values as ints, is kept + # Tests for #11687 'add01': (r'{{ i|add:"5" }}', {'i': 2000}, '2005'), 'add02': (r'{{ i|add:"napis" }}', {'i': 2000}, '2000'), 'add03': (r'{{ i|add:16 }}', {'i': 'not_an_int'}, 'not_an_int'), 'add04': (r'{{ i|add:"16" }}', {'i': 'not_an_int'}, 'not_an_int16'), - # further additions using dynamic typing 'add05': (r'{{ l1|add:l2 }}', {'l1': [1, 2], 'l2': [3, 4]}, '[1, 2, 3, 4]'), 'add06': (r'{{ t1|add:t2 }}', {'t1': (3, 4), 't2': (1, 2)}, '(3, 4, 1, 2)'), 'add07': (r'{{ d|add:t }}', {'d': date(2000, 1, 1), 't': timedelta(10)}, '2000-01-11'),