summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-11-27 05:40:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-27 05:40:49 (GMT)
commitd1cbc6f8a00cf881ced6238c5e652054e8fdc30f (patch)
treea3efeedb0d9f65c7b48a7682d1764e62a11e1781 /Lib/test/test_array.py
parentda324d53d420347344236ff64cf5eb9b675d6f86 (diff)
downloadcpython-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_array.py')
-rw-r--r--Lib/test/test_array.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index e9218f3..7f402f8 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):