@@ -65,7 +65,7 @@ def helper_pickle_string(protocol: int, test_file: str, mode: str | None) -> Non
65
65
("Tests/images/itxt_chunks.png" , None ),
66
66
],
67
67
)
68
- @pytest .mark .parametrize ("protocol" , range (0 , pickle .HIGHEST_PROTOCOL + 1 ))
68
+ @pytest .mark .parametrize ("protocol" , range (pickle .HIGHEST_PROTOCOL + 1 ))
69
69
def test_pickle_image (
70
70
tmp_path : Path , test_file : str , test_mode : str | None , protocol : int
71
71
) -> None :
@@ -92,7 +92,7 @@ def test_pickle_la_mode_with_palette(tmp_path: Path) -> None:
92
92
im = im .convert ("PA" )
93
93
94
94
# Act / Assert
95
- for protocol in range (0 , pickle .HIGHEST_PROTOCOL + 1 ):
95
+ for protocol in range (pickle .HIGHEST_PROTOCOL + 1 ):
96
96
im ._mode = "LA"
97
97
with open (filename , "wb" ) as f :
98
98
pickle .dump (im , f , protocol )
@@ -133,7 +133,7 @@ def helper_assert_pickled_font_images(
133
133
134
134
135
135
@skip_unless_feature ("freetype2" )
136
- @pytest .mark .parametrize ("protocol" , list (range (0 , pickle .HIGHEST_PROTOCOL + 1 )))
136
+ @pytest .mark .parametrize ("protocol" , list (range (pickle .HIGHEST_PROTOCOL + 1 )))
137
137
def test_pickle_font_string (protocol : int ) -> None :
138
138
# Arrange
139
139
font = ImageFont .truetype (FONT_PATH , FONT_SIZE )
@@ -147,7 +147,7 @@ def test_pickle_font_string(protocol: int) -> None:
147
147
148
148
149
149
@skip_unless_feature ("freetype2" )
150
- @pytest .mark .parametrize ("protocol" , list (range (0 , pickle .HIGHEST_PROTOCOL + 1 )))
150
+ @pytest .mark .parametrize ("protocol" , list (range (pickle .HIGHEST_PROTOCOL + 1 )))
151
151
def test_pickle_font_file (tmp_path : Path , protocol : int ) -> None :
152
152
# Arrange
153
153
font = ImageFont .truetype (FONT_PATH , FONT_SIZE )
0 commit comments