[Python-checkins] cpython (merge 3.6 -> default): merge
raymond.hettinger
python-checkins at python.org
Sun Jan 8 03:38:27 EST 2017
https://hg.python.org/cpython/rev/f889305d89a2
changeset: 106043:f889305d89a2
parent: 106041:0cb71a208d85
parent: 106042:9a91621573f2
user: Raymond Hettinger <python at rcn.com>
date: Sun Jan 08 00:37:32 2017 -0800
summary:
merge
files:
Lib/test/test_ordered_dict.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_ordered_dict.py b/Lib/test/test_ordered_dict.py
--- a/Lib/test/test_ordered_dict.py
+++ b/Lib/test/test_ordered_dict.py
@@ -52,6 +52,14 @@
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):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list