summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-01-08 08:37:32 (GMT)
committerRaymond Hettinger <python@rcn.com>2017-01-08 08:37:32 (GMT)
commitbd41e0b3f1daacdc1ef7953b0579dba2301f3826 (patch)
tree9130a7362c0b3089059cb36d16f7c0faca6c95ac
parent1222e05a0dc2a771271008f6471f21764a9c358e (diff)
parentec53b07ef1dabea192d6566b78e6f12d329967a6 (diff)
downloadcpython-bd41e0b3f1daacdc1ef7953b0579dba2301f3826.zip
cpython-bd41e0b3f1daacdc1ef7953b0579dba2301f3826.tar.gz
cpython-bd41e0b3f1daacdc1ef7953b0579dba2301f3826.tar.bz2
merge
-rw-r--r--Lib/test/test_ordered_dict.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_ordered_dict.py b/Lib/test/test_ordered_dict.py
index a35ed12..93f812a 100644
--- a/Lib/test/test_ordered_dict.py
+++ b/Lib/test/test_ordered_dict.py
@@ -52,6 +52,14 @@ class OrderedDictTests:
self.assertEqual(list(d.items()),
[('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5), ('f', 6), ('g', 7)])
+ def test_468(self):
+ OrderedDict = self.OrderedDict
+ items = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5), ('f', 6), ('g', 7)]
+ shuffle(items)
+ argdict = OrderedDict(items)
+ d = OrderedDict(**argdict)
+ self.assertEqual(list(d.items()), items)
+
def test_update(self):
OrderedDict = self.OrderedDict
with self.assertRaises(TypeError):