diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-11-27 05:40:49 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 05:40:49 (GMT) |
commit | d1cbc6f8a00cf881ced6238c5e652054e8fdc30f (patch) | |
tree | a3efeedb0d9f65c7b48a7682d1764e62a11e1781 /Lib/test/test_dict.py | |
parent | da324d53d420347344236ff64cf5eb9b675d6f86 (diff) | |
download | cpython-d1cbc6f8a00cf881ced6238c5e652054e8fdc30f.zip cpython-d1cbc6f8a00cf881ced6238c5e652054e8fdc30f.tar.gz cpython-d1cbc6f8a00cf881ced6238c5e652054e8fdc30f.tar.bz2 |
Include the highest pickle protocol in a couple of tests. (GH-10735)
test_reduce_ex() in test_array.py and
test_reversevaluesiterator_pickling() in test_dict.py weren't using
the highest pickle protocol.
Diffstat (limited to 'Lib/test/test_dict.py')
-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 71fffe3..03afd5b 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -1112,7 +1112,7 @@ class DictTest(unittest.TestCase): self.assertEqual(dict(it), data) def test_reversevaluesiterator_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 = reversed(data.values()) |