mirror of
https://github.com/django/django.git
synced 2025-04-18 06:14:37 +00:00
[1.7.x] Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.
Backport of 69a4f383f6 from master
This commit is contained in:
parent
18b2c03ea3
commit
0f9f8738d5
@ -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])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user