Browse files

[1.7.x] Fixed #22338 -- Fixed a test dependent on dictionary key iter…

…ation order.

Backport of 69a4f38 from master
  • Loading branch information...
1 parent 18b2c03 commit 0f9f8738d5599fa3950606c8e6a462f4813e4830 @timgraham timgraham committed Mar 30, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/utils_tests/test_datastructures.py
View
2 tests/utils_tests/test_datastructures.py
@@ -271,7 +271,7 @@ def test_dict_translation(self):
'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])

0 comments on commit 0f9f873

Please sign in to comment.