From 69a4f383f6e84bac16afad103d332103e4e7bcc1 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 30 Mar 2014 14:25:06 -0400 Subject: [PATCH] Fixed #22338 -- Fixed a test dependent on dictionary key iteration order. --- tests/utils_tests/test_datastructures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])