Corrected type check

This commit is contained in:
Andrew Murray 2025-02-18 07:56:11 +11:00
parent fa58313c41
commit 322e121a92

View File

@ -16,7 +16,7 @@ def test_load() -> None:
with Image.open("Tests/images/gbr.gbr") as im:
px = im.load()
assert px is not None
assert im.load()[0, 0] == (0, 0, 0, 0)
assert px[0, 0] == (0, 0, 0, 0)
# Test again now that it has already been loaded once
px = im.load()