summaryrefslogtreecommitdiff
path: root/tests/regressiontests/templates
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2010-02-22 23:42:53 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2010-02-22 23:42:53 +0000
commitc1d795df454b9f6500d3b704e68bddd10f0e17eb (patch)
tree7a1350480b4236ad31ee0fc2aefbee048897ce0b /tests/regressiontests/templates
parentb3d20ade47aadce5bd02ff33ea7dc0e19cf004cb (diff)
Clarified a comment from [11687].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/templates')
-rw-r--r--tests/regressiontests/templates/filters.py4
1 files changed, 1 insertions, 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'),