mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Assert colors is not None
This commit is contained in:
parent
6ee9d5362c
commit
36a536ca1a
|
@ -256,7 +256,9 @@ class TestFileAvif:
|
||||||
assert_image(im, "RGBA", (64, 64))
|
assert_image(im, "RGBA", (64, 64))
|
||||||
|
|
||||||
# image has 876 transparent pixels
|
# image has 876 transparent pixels
|
||||||
assert im.getchannel("A").getcolors()[0] == (876, 0)
|
colors = im.getchannel("A").getcolors()
|
||||||
|
assert colors is not None
|
||||||
|
assert colors[0] == (876, 0)
|
||||||
|
|
||||||
def test_save_transparent(self, tmp_path: Path) -> None:
|
def test_save_transparent(self, tmp_path: Path) -> None:
|
||||||
im = Image.new("RGBA", (10, 10), (0, 0, 0, 0))
|
im = Image.new("RGBA", (10, 10), (0, 0, 0, 0))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user