Kaydet (Commit) 1f36bf60 authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev Kaydeden (comit) Xiang Zhang

Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)

üst 290a60bd
......@@ -1056,7 +1056,7 @@ class DictTest(unittest.TestCase):
self.assertEqual(dict(it), data)
def test_valuesiterator_pickling(self):
for proto in range(pickle.HIGHEST_PROTOCOL):
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
data = {1:"a", 2:"b", 3:"c"}
# data.values() isn't picklable, only its iterator
it = iter(data.values())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment