summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2012-10-26 01:25:22 +0100
committerLuke Plant <L.Plant.98@cantab.net>2012-10-26 02:40:33 +0100
commitf02f29dccc6207829f64156f539704125cdce75d (patch)
tree3bdda271855b84aa792d03838bf1f52f6ecf866f /tests
parentb430e1db5f26d1de3a5cd0d6eae18603070fdab4 (diff)
[1.5.x] Fixed some test failures on Python 3.3 related to QueryDict
Refs #19038. Backport of 1413ee0a1705beee0df1949b308cc52f2467b5d1 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/httpwrappers/tests.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/regressiontests/httpwrappers/tests.py b/tests/regressiontests/httpwrappers/tests.py
index d8b11edb57..553b6ecff4 100644
--- a/tests/regressiontests/httpwrappers/tests.py
+++ b/tests/regressiontests/httpwrappers/tests.py
@@ -129,10 +129,14 @@ class QueryDictTests(unittest.TestCase):
self.assertTrue(q.has_key('foo'))
self.assertTrue('foo' in q)
- self.assertEqual(list(six.iteritems(q)), [('foo', 'another'), ('name', 'john')])
- self.assertEqual(list(six.iterlists(q)), [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
- self.assertEqual(list(six.iterkeys(q)), ['foo', 'name'])
- self.assertEqual(list(six.itervalues(q)), ['another', 'john'])
+ self.assertEqual(sorted(list(six.iteritems(q))),
+ [('foo', 'another'), ('name', 'john')])
+ self.assertEqual(sorted(list(six.iterlists(q))),
+ [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
+ self.assertEqual(sorted(list(six.iterkeys(q))),
+ ['foo', 'name'])
+ self.assertEqual(sorted(list(six.itervalues(q))),
+ ['another', 'john'])
self.assertEqual(len(q), 2)
q.update({'foo': 'hello'})