Do not cast unnecessarily

This commit is contained in:
Andrew Murray 2025-03-21 20:41:52 +11:00
parent 8d55054877
commit 9334bf040e

View File

@ -187,8 +187,7 @@ class TestImage:
for ext in (".jpg", ".jp2"):
if ext == ".jp2" and not features.check_codec("jpg_2000"):
pytest.skip("jpg_2000 not available")
temp_file = tmp_path / ("temp." + ext)
im.save(Path(temp_file))
im.save(tmp_path / ("temp." + ext))
def test_fp_name(self, tmp_path: Path) -> None:
temp_file = tmp_path / "temp.jpg"