Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed some test failures on Python 3.3 related to QueryDict

Refs #19038.

Backport of 1413ee0 from master
  • Loading branch information...
commit f02f29dccc6207829f64156f539704125cdce75d 1 parent b430e1d
Luke Plant authored October 26, 2012
12  tests/regressiontests/httpwrappers/tests.py
@@ -129,10 +129,14 @@ def test_basic_mutable_operations(self):
129 129
             self.assertTrue(q.has_key('foo'))
130 130
         self.assertTrue('foo' in q)
131 131
 
132  
-        self.assertEqual(list(six.iteritems(q)),  [('foo', 'another'), ('name', 'john')])
133  
-        self.assertEqual(list(six.iterlists(q)), [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
134  
-        self.assertEqual(list(six.iterkeys(q)), ['foo', 'name'])
135  
-        self.assertEqual(list(six.itervalues(q)), ['another', 'john'])
  132
+        self.assertEqual(sorted(list(six.iteritems(q))),
  133
+                         [('foo', 'another'), ('name', 'john')])
  134
+        self.assertEqual(sorted(list(six.iterlists(q))),
  135
+                         [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
  136
+        self.assertEqual(sorted(list(six.iterkeys(q))),
  137
+                         ['foo', 'name'])
  138
+        self.assertEqual(sorted(list(six.itervalues(q))),
  139
+                         ['another', 'john'])
136 140
         self.assertEqual(len(q), 2)
137 141
 
138 142
         q.update({'foo': 'hello'})

0 notes on commit f02f29d

Please sign in to comment.
Something went wrong with that request. Please try again.