summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-09-10 09:42:09 (GMT)
committerXiang Zhang <angwerzx@126.com>2018-09-10 09:42:09 (GMT)
commit1f36bf6077d93cb43fd84bea4a8a625fa772d1fa (patch)
tree190331d8db59e8adeba9c56c69ea08a3e6291a08 /Lib/test/test_dict.py
parent290a60bd8af7b1d7e7931aa4dd4eace60d355d76 (diff)
downloadcpython-1f36bf6077d93cb43fd84bea4a8a625fa772d1fa.zip
cpython-1f36bf6077d93cb43fd84bea4a8a625fa772d1fa.tar.gz
cpython-1f36bf6077d93cb43fd84bea4a8a625fa772d1fa.tar.bz2
Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052)
Diffstat (limited to 'Lib/test/test_dict.py')
-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 aa149d3..38521bb 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -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())