diff options
-rw-r--r-- | Lib/test/test_dict.py | 2 |
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()) |