@@ -65,7 +65,7 @@ def helper_pickle_string(protocol: int, test_file: str, mode: str | None) -> Non
6565 ("Tests/images/itxt_chunks.png" , None ),
6666 ],
6767)
68- @pytest .mark .parametrize ("protocol" , range (0 , pickle .HIGHEST_PROTOCOL + 1 ))
68+ @pytest .mark .parametrize ("protocol" , range (pickle .HIGHEST_PROTOCOL + 1 ))
6969def test_pickle_image (
7070 tmp_path : Path , test_file : str , test_mode : str | None , protocol : int
7171) -> None :
@@ -92,7 +92,7 @@ def test_pickle_la_mode_with_palette(tmp_path: Path) -> None:
9292 im = im .convert ("PA" )
9393
9494 # Act / Assert
95- for protocol in range (0 , pickle .HIGHEST_PROTOCOL + 1 ):
95+ for protocol in range (pickle .HIGHEST_PROTOCOL + 1 ):
9696 im ._mode = "LA"
9797 with open (filename , "wb" ) as f :
9898 pickle .dump (im , f , protocol )
@@ -133,7 +133,7 @@ def helper_assert_pickled_font_images(
133133
134134
135135@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 )))
137137def test_pickle_font_string (protocol : int ) -> None :
138138 # Arrange
139139 font = ImageFont .truetype (FONT_PATH , FONT_SIZE )
@@ -147,7 +147,7 @@ def test_pickle_font_string(protocol: int) -> None:
147147
148148
149149@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 )))
151151def test_pickle_font_file (tmp_path : Path , protocol : int ) -> None :
152152 # Arrange
153153 font = ImageFont .truetype (FONT_PATH , FONT_SIZE )
0 commit comments