@@ -345,7 +345,7 @@ def test_apng_sequence_errors(test_file: str) -> None:
345345
346346def test_apng_save (tmp_path : Path ) -> None :
347347 with Image .open ("Tests/images/apng/single_frame.png" ) as im :
348- test_file = str ( tmp_path / "temp.png" )
348+ test_file = tmp_path / "temp.png"
349349 im .save (test_file , save_all = True )
350350
351351 with Image .open (test_file ) as im :
@@ -375,7 +375,7 @@ def test_apng_save(tmp_path: Path) -> None:
375375
376376
377377def test_apng_save_alpha (tmp_path : Path ) -> None :
378- test_file = str ( tmp_path / "temp.png" )
378+ test_file = tmp_path / "temp.png"
379379
380380 im = Image .new ("RGBA" , (1 , 1 ), (255 , 0 , 0 , 255 ))
381381 im2 = Image .new ("RGBA" , (1 , 1 ), (255 , 0 , 0 , 127 ))
@@ -393,7 +393,7 @@ def test_apng_save_split_fdat(tmp_path: Path) -> None:
393393 # frames with image data spanning multiple fdAT chunks (in this case
394394 # both the default image and first animation frame will span multiple
395395 # data chunks)
396- test_file = str ( tmp_path / "temp.png" )
396+ test_file = tmp_path / "temp.png"
397397 with Image .open ("Tests/images/old-style-jpeg-compression.png" ) as im :
398398 frames = [im .copy (), Image .new ("RGBA" , im .size , (255 , 0 , 0 , 255 ))]
399399 im .save (
@@ -408,7 +408,7 @@ def test_apng_save_split_fdat(tmp_path: Path) -> None:
408408
409409
410410def test_apng_save_duration_loop (tmp_path : Path ) -> None :
411- test_file = str ( tmp_path / "temp.png" )
411+ test_file = tmp_path / "temp.png"
412412 with Image .open ("Tests/images/apng/delay.png" ) as im :
413413 frames = []
414414 durations = []
@@ -471,7 +471,7 @@ def test_apng_save_duration_loop(tmp_path: Path) -> None:
471471
472472
473473def test_apng_save_disposal (tmp_path : Path ) -> None :
474- test_file = str ( tmp_path / "temp.png" )
474+ test_file = tmp_path / "temp.png"
475475 size = (128 , 64 )
476476 red = Image .new ("RGBA" , size , (255 , 0 , 0 , 255 ))
477477 green = Image .new ("RGBA" , size , (0 , 255 , 0 , 255 ))
@@ -572,7 +572,7 @@ def test_apng_save_disposal(tmp_path: Path) -> None:
572572
573573
574574def test_apng_save_disposal_previous (tmp_path : Path ) -> None :
575- test_file = str ( tmp_path / "temp.png" )
575+ test_file = tmp_path / "temp.png"
576576 size = (128 , 64 )
577577 blue = Image .new ("RGBA" , size , (0 , 0 , 255 , 255 ))
578578 red = Image .new ("RGBA" , size , (255 , 0 , 0 , 255 ))
@@ -594,7 +594,7 @@ def test_apng_save_disposal_previous(tmp_path: Path) -> None:
594594
595595
596596def test_apng_save_blend (tmp_path : Path ) -> None :
597- test_file = str ( tmp_path / "temp.png" )
597+ test_file = tmp_path / "temp.png"
598598 size = (128 , 64 )
599599 red = Image .new ("RGBA" , size , (255 , 0 , 0 , 255 ))
600600 green = Image .new ("RGBA" , size , (0 , 255 , 0 , 255 ))
@@ -662,7 +662,7 @@ def test_apng_save_blend(tmp_path: Path) -> None:
662662
663663
664664def test_apng_save_size (tmp_path : Path ) -> None :
665- test_file = str ( tmp_path / "temp.png" )
665+ test_file = tmp_path / "temp.png"
666666
667667 im = Image .new ("L" , (100 , 100 ))
668668 im .save (test_file , save_all = True , append_images = [Image .new ("L" , (200 , 200 ))])
@@ -686,7 +686,7 @@ def test_seek_after_close() -> None:
686686def test_different_modes_in_later_frames (
687687 mode : str , default_image : bool , duplicate : bool , tmp_path : Path
688688) -> None :
689- test_file = str ( tmp_path / "temp.png" )
689+ test_file = tmp_path / "temp.png"
690690
691691 im = Image .new ("L" , (1 , 1 ))
692692 im .save (
@@ -700,7 +700,7 @@ def test_different_modes_in_later_frames(
700700
701701
702702def test_different_durations (tmp_path : Path ) -> None :
703- test_file = str ( tmp_path / "temp.png" )
703+ test_file = tmp_path / "temp.png"
704704
705705 with Image .open ("Tests/images/apng/different_durations.png" ) as im :
706706 for _ in range (3 ):
0 commit comments