Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Refs #19038.

Backport of 1413ee0a1705beee0df1949b308cc52f2467b5d1 from master
  • Loading branch information...
commit f02f29dccc6207829f64156f539704125cdce75d 1 parent b430e1d
@spookylukey spookylukey authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 tests/regressiontests/httpwrappers/tests.py
View
12 tests/regressiontests/httpwrappers/tests.py
@@ -129,10 +129,14 @@ def test_basic_mutable_operations(self):
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'})
Please sign in to comment.
Something went wrong with that request. Please try again.