Simplified code

This commit is contained in:
Andrew Murray 2025-03-19 20:40:29 +11:00
parent 5853632a8f
commit 86b251f40e
2 changed files with 2 additions and 2 deletions

View File

@ -764,7 +764,7 @@ class TestFileJpeg:
img = Image.new(mode, (20, 20))
img.save(out, "JPEG", convert_mode=True)
temp_file = str(tmp_path / "temp.jpg")
temp_file = tmp_path / "temp.jpg"
with Image.open("Tests/images/pil123rgba.png") as img:
img.save(temp_file, convert_mode=True, fill_color="red")

View File

@ -507,7 +507,7 @@ class TestImage:
def test_no_supported_modes_method(self, tmp_path: Path) -> None:
assert not hasattr(TiffImagePlugin, "_supported_modes")
temp_file = str(tmp_path / "temp.tiff")
temp_file = tmp_path / "temp.tiff"
im = hopper()
im.save(temp_file, convert_mode=True)