mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 17:25:49 +03:00
Assert that a tuple is returned by getpixel()
This commit is contained in:
parent
0e3f51dec6
commit
0074c3bf34
|
@ -331,11 +331,13 @@ def test_dxt5_colorblock_alpha_issue_4142() -> None:
|
||||||
|
|
||||||
with Image.open("Tests/images/dxt5-colorblock-alpha-issue-4142.dds") as im:
|
with Image.open("Tests/images/dxt5-colorblock-alpha-issue-4142.dds") as im:
|
||||||
px = im.getpixel((0, 0))
|
px = im.getpixel((0, 0))
|
||||||
|
assert isinstance(px, tuple)
|
||||||
assert px[0] != 0
|
assert px[0] != 0
|
||||||
assert px[1] != 0
|
assert px[1] != 0
|
||||||
assert px[2] != 0
|
assert px[2] != 0
|
||||||
|
|
||||||
px = im.getpixel((1, 0))
|
px = im.getpixel((1, 0))
|
||||||
|
assert isinstance(px, tuple)
|
||||||
assert px[0] != 0
|
assert px[0] != 0
|
||||||
assert px[1] != 0
|
assert px[1] != 0
|
||||||
assert px[2] != 0
|
assert px[2] != 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user