From 4b3330ad07cfb0736d38299a0a04578027f6b698 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Mon, 10 Sep 2018 14:42:09 +0500 Subject: [PATCH] Test dict values iterator pickling with pickle.HIGHEST_PROTOCOL. (GH-9052) (cherry picked from commit 1f36bf6077d93cb43fd84bea4a8a625fa772d1fa) Co-authored-by: Sergey Fedoseev --- Lib/test/test_dict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index 4386eda3ae48fdd..639e05f74a8a612 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())