summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-02-13 05:50:55 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-02-13 05:50:55 +0000
commita4ddecd15c1ea38a7827426f73ddd997786d42cd (patch)
tree3e78868c340af644c6c63646c6af7ee3b6c4c54c /tests
parentffa0d274625d21e6c4c7fa146413ce951b669b72 (diff)
Fixed #3155 -- Allow an integer to be passed to the urlencode filter. Patch
based on one from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/defaultfilters/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py
index 481557b782..b4ec9a0b03 100644
--- a/tests/regressiontests/defaultfilters/tests.py
+++ b/tests/regressiontests/defaultfilters/tests.py
@@ -111,6 +111,8 @@ u'\xcb'
>>> urlencode('jack & jill')
'jack%20%26%20jill'
+>>> urlencode(1)
+'1'
>>> urlizetrunc('http://short.com/', 20)