summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-30 14:25:06 -0400
committerTim Graham <timograham@gmail.com>2014-03-30 14:25:06 -0400
commit69a4f383f6e84bac16afad103d332103e4e7bcc1 (patch)
treedbe712035328500e9e8daf0c98d1fbb0893a022a /tests
parent9723e999a0b4acb212210241851dbe75dfbc1a55 (diff)
Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests/test_datastructures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_datastructures.py b/tests/utils_tests/test_datastructures.py
index 295b3650d6..a163310e19 100644
--- a/tests/utils_tests/test_datastructures.py
+++ b/tests/utils_tests/test_datastructures.py
@@ -271,7 +271,7 @@ class MultiValueDictTests(SimpleTestCase):
'pm': ['Rory'],
})
d = mvd.dict()
- self.assertEqual(list(six.iterkeys(d)), list(six.iterkeys(mvd)))
+ self.assertEqual(sorted(six.iterkeys(d)), sorted(six.iterkeys(mvd)))
for key in six.iterkeys(mvd):
self.assertEqual(d[key], mvd[key])