change parameter type from list to tuple

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Yay295 2024-10-05 08:05:00 -05:00 committed by GitHub
parent f9c69deaae
commit 8e6d518ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,9 @@ def test_missing_boundingbox_comment(prefix: bytes) -> None:
simple_eps_file_with_invalid_boundingbox_valid_imagedata,
),
)
def test_invalid_boundingbox_comment(prefix: bytes, file_lines: list[bytes]) -> None:
def test_invalid_boundingbox_comment(
prefix: bytes, file_lines: tuple[bytes, ...]
) -> None:
data = io.BytesIO(prefix + b"\n".join(file_lines))
with pytest.raises(OSError, match="cannot determine EPS bounding box"):
EpsImagePlugin.EpsImageFile(data)