summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-22 02:36:28 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-22 02:36:28 (GMT)
commitd5b200ce2be23c2bd90d01b87c8280b27f578a6a (patch)
treeca8c35629ede54d202647c9a64db751bdc25c37c
parentf22e8e5426e02c2f5cf451cbc1b722713c744358 (diff)
downloadcpython-d5b200ce2be23c2bd90d01b87c8280b27f578a6a.zip
cpython-d5b200ce2be23c2bd90d01b87c8280b27f578a6a.tar.gz
cpython-d5b200ce2be23c2bd90d01b87c8280b27f578a6a.tar.bz2
Issue #19664: fix another flake test_userdict test
-rw-r--r--Lib/test/test_userdict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
index 4d89965..2ca9929 100644
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -90,9 +90,9 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
self.assertNotEqual(m2a, m2)
# Test keys, items, values
- self.assertEqual(u2.keys(), d2.keys())
- self.assertEqual(u2.items(), d2.items())
- self.assertEqual(list(u2.values()), list(d2.values()))
+ self.assertEqual(sorted(u2.keys()), sorted(d2.keys()))
+ self.assertEqual(sorted(u2.items()), sorted(d2.items()))
+ self.assertEqual(sorted(u2.values()), sorted(d2.values()))
# Test "in".
for i in u2.keys():