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])