[Python-checkins] Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
Miss Islington (bot)
webhook-mailer at python.org
Mon Sep 10 06:32:57 EDT 2018
https://github.com/python/cpython/commit/9f5351edbe8610f75174013be66a767fecf78fe2
commit: 9f5351edbe8610f75174013be66a767fecf78fe2
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-09-10T03:32:53-07:00
summary:
Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
(cherry picked from commit 1f36bf6077d93cb43fd84bea4a8a625fa772d1fa)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey at gmail.com>
files:
M Lib/test/test_dict.py
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index 4386eda3ae48..639e05f74a8a 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -1010,7 +1010,7 @@ def test_itemiterator_pickling(self):
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())
More information about the Python-checkins
mailing list