mirror of https://github.com/django/django.git
[1.6.x] Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.
Backport of 69a4f383f6
from master
This commit is contained in:
parent
30ba506e97
commit
059bc7eb60
|
@ -280,7 +280,7 @@ class MultiValueDictTests(SimpleTestCase):
|
||||||
'pm': ['Rory'],
|
'pm': ['Rory'],
|
||||||
})
|
})
|
||||||
d = mvd.dict()
|
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):
|
for key in six.iterkeys(mvd):
|
||||||
self.assertEqual(d[key], mvd[key])
|
self.assertEqual(d[key], mvd[key])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue