summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-10 03:32:53 -0700
committerGitHub <noreply@github.com>2018-09-10 03:32:53 -0700
commit9f5351edbe8610f75174013be66a767fecf78fe2 (patch)
tree8c842e156011135d3e6cce2654378e5c3e049386
parent8eda821d1b8db374bf963cf18b5c7f063366b062 (diff)
downloadcpython-git-9f5351edbe8610f75174013be66a767fecf78fe2.tar.gz
Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
(cherry picked from commit 1f36bf6077d93cb43fd84bea4a8a625fa772d1fa) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
-rw-r--r--Lib/test/test_dict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index 4386eda3ae..639e05f74a 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -1010,7 +1010,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())