Skip to content

Commit 9334bf0

Browse files
committed
Do not cast unnecessarily
1 parent 8d55054 commit 9334bf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/test_image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def test_pathlib(self, tmp_path: Path) -> None:
187187
for ext in (".jpg", ".jp2"):
188188
if ext == ".jp2" and not features.check_codec("jpg_2000"):
189189
pytest.skip("jpg_2000 not available")
190-
temp_file = tmp_path / ("temp." + ext)
191-
im.save(Path(temp_file))
190+
im.save(tmp_path / ("temp." + ext))
192191

193192
def test_fp_name(self, tmp_path: Path) -> None:
194193
temp_file = tmp_path / "temp.jpg"

0 commit comments

Comments
 (0)