mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 00:02:24 +03:00
Do not cast unnecessarily
This commit is contained in:
parent
8d55054877
commit
9334bf040e
|
@ -187,8 +187,7 @@ class TestImage:
|
||||||
for ext in (".jpg", ".jp2"):
|
for ext in (".jpg", ".jp2"):
|
||||||
if ext == ".jp2" and not features.check_codec("jpg_2000"):
|
if ext == ".jp2" and not features.check_codec("jpg_2000"):
|
||||||
pytest.skip("jpg_2000 not available")
|
pytest.skip("jpg_2000 not available")
|
||||||
temp_file = tmp_path / ("temp." + ext)
|
im.save(tmp_path / ("temp." + ext))
|
||||||
im.save(Path(temp_file))
|
|
||||||
|
|
||||||
def test_fp_name(self, tmp_path: Path) -> None:
|
def test_fp_name(self, tmp_path: Path) -> None:
|
||||||
temp_file = tmp_path / "temp.jpg"
|
temp_file = tmp_path / "temp.jpg"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user