1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.

This commit is contained in:
Tim Graham 2014-03-30 14:25:06 -04:00
parent 9723e999a0
commit 69a4f383f6

View File

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