mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 20:33:24 +03:00
Assert tile args is tuple
This commit is contained in:
parent
f3b05d6fab
commit
0d1edba311
|
@ -1422,7 +1422,9 @@ def test_getdata(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||||
def test_lzw_bits() -> None:
|
def test_lzw_bits() -> None:
|
||||||
# see https://github.com/python-pillow/Pillow/issues/2811
|
# see https://github.com/python-pillow/Pillow/issues/2811
|
||||||
with Image.open("Tests/images/issue_2811.gif") as im:
|
with Image.open("Tests/images/issue_2811.gif") as im:
|
||||||
assert im.tile[0][3][0] == 11 # LZW bits
|
args = im.tile[0][3]
|
||||||
|
assert isinstance(args, tuple)
|
||||||
|
assert args[0] == 11 # LZW bits
|
||||||
# codec error prepatch
|
# codec error prepatch
|
||||||
im.load()
|
im.load()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user