Skip to content

Commit 86b251f

Browse files
committed
Simplified code
1 parent 5853632 commit 86b251f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/test_file_jpeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def test_save_wrong_modes(self, tmp_path: Path) -> None:
764764
img = Image.new(mode, (20, 20))
765765
img.save(out, "JPEG", convert_mode=True)
766766

767-
temp_file = str(tmp_path / "temp.jpg")
767+
temp_file = tmp_path / "temp.jpg"
768768
with Image.open("Tests/images/pil123rgba.png") as img:
769769
img.save(temp_file, convert_mode=True, fill_color="red")
770770

Tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def test_supported_modes(self) -> None:
507507
def test_no_supported_modes_method(self, tmp_path: Path) -> None:
508508
assert not hasattr(TiffImagePlugin, "_supported_modes")
509509

510-
temp_file = str(tmp_path / "temp.tiff")
510+
temp_file = tmp_path / "temp.tiff"
511511

512512
im = hopper()
513513
im.save(temp_file, convert_mode=True)

0 commit comments

Comments
 (0)