From d1cbc6f8a00cf881ced6238c5e652054e8fdc30f Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Mon, 26 Nov 2018 22:40:49 -0700 Subject: 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. --- Lib/test/test_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_array.py') diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index e9218f3dd6..7f402f8644 100644 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -248,7 +248,7 @@ class BaseTest: a = array.array(self.typecode, self.example) for protocol in range(3): self.assertIs(a.__reduce_ex__(protocol)[0], array.array) - for protocol in range(3, pickle.HIGHEST_PROTOCOL): + for protocol in range(3, pickle.HIGHEST_PROTOCOL + 1): self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor) def test_pickle(self): -- cgit v1.2.1