Skip to content

Commit 0d1edba

Browse files
committed
Assert tile args is tuple
1 parent f3b05d6 commit 0d1edba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/test_file_gif.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,9 @@ def test_getdata(monkeypatch: pytest.MonkeyPatch) -> None:
14221422
def test_lzw_bits() -> None:
14231423
# see https://github.com/python-pillow/Pillow/issues/2811
14241424
with Image.open("Tests/images/issue_2811.gif") as im:
1425-
assert im.tile[0][3][0] == 11 # LZW bits
1425+
args = im.tile[0][3]
1426+
assert isinstance(args, tuple)
1427+
assert args[0] == 11 # LZW bits
14261428
# codec error prepatch
14271429
im.load()
14281430

0 commit comments

Comments
 (0)