mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Assert load() does not return None
This commit is contained in:
parent
cba096b4a9
commit
a3da70e76e
|
@ -1481,7 +1481,9 @@ def test_saving_rgba(tmp_path: Path) -> None:
|
||||||
|
|
||||||
with Image.open(out) as reloaded:
|
with Image.open(out) as reloaded:
|
||||||
reloaded_rgba = reloaded.convert("RGBA")
|
reloaded_rgba = reloaded.convert("RGBA")
|
||||||
value = reloaded_rgba.load()[0, 0]
|
px = reloaded_rgba.load()
|
||||||
|
assert px is not None
|
||||||
|
value = px[0, 0]
|
||||||
assert isinstance(value, tuple)
|
assert isinstance(value, tuple)
|
||||||
assert value[3] == 0
|
assert value[3] == 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user