summaryrefslogtreecommitdiff
path: root/tests/regressiontests/httpwrappers
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-17 08:50:19 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-17 08:50:19 +0000
commit4a25cf5d95d29f77160c56b723da5b8ce3a8d8a3 (patch)
treeb2f2e24ad734191c0614a32a2eb08d0e478d3241 /tests/regressiontests/httpwrappers
parent03f1eb23e5c39e130744f885d480b2aa70d93088 (diff)
Fixed a Python 2.3 problem from [6927].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/httpwrappers')
-rw-r--r--tests/regressiontests/httpwrappers/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/httpwrappers/tests.py b/tests/regressiontests/httpwrappers/tests.py
index 8fa5cdc9f3..31b956a99d 100644
--- a/tests/regressiontests/httpwrappers/tests.py
+++ b/tests/regressiontests/httpwrappers/tests.py
@@ -415,7 +415,9 @@ UnicodeEncodeError: ..., HTTP response headers must be in US-ASCII format
The response also converts unicode keys to strings.
>>> r[u'test'] = 'testing key'
->>> list(sorted(r.items()))[1]
+>>> l = list(r.items())
+>>> l.sort()
+>>> l[1]
('test', 'testing key')
It will also raise errors for keys with non-ascii data.