File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ def test_reduce_ex(self):
248
248
a = array .array (self .typecode , self .example )
249
249
for protocol in range (3 ):
250
250
self .assertIs (a .__reduce_ex__ (protocol )[0 ], array .array )
251
- for protocol in range (3 , pickle .HIGHEST_PROTOCOL ):
251
+ for protocol in range (3 , pickle .HIGHEST_PROTOCOL + 1 ):
252
252
self .assertIs (a .__reduce_ex__ (protocol )[0 ], array_reconstructor )
253
253
254
254
def test_pickle (self ):
Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ def test_reverseitemiterator_pickling(self):
1112
1112
self .assertEqual (dict (it ), data )
1113
1113
1114
1114
def test_reversevaluesiterator_pickling (self ):
1115
- for proto in range (pickle .HIGHEST_PROTOCOL ):
1115
+ for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
1116
1116
data = {1 :"a" , 2 :"b" , 3 :"c" }
1117
1117
# data.values() isn't picklable, only its iterator
1118
1118
it = reversed (data .values ())
You can’t perform that action at this time.
0 commit comments