Removed unused mode argument from assert_image_similar_tofile

This commit is contained in:
Andrew Murray 2025-01-09 14:32:17 +11:00
parent af3b904233
commit 440b09e831

View File

@ -140,11 +140,8 @@ def assert_image_similar_tofile(
filename: str, filename: str,
epsilon: float, epsilon: float,
msg: str | None = None, msg: str | None = None,
mode: str | None = None,
) -> None: ) -> None:
with Image.open(filename) as img: with Image.open(filename) as img:
if mode:
img = img.convert(mode)
assert_image_similar(a, img, epsilon, msg) assert_image_similar(a, img, epsilon, msg)