mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
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.
This commit is contained in:
parent
da324d53d4
commit
d1cbc6f8a0
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue