Skip to content

Commit a3da70e

Browse files
committed
Assert load() does not return None
1 parent cba096b commit a3da70e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/test_file_gif.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,9 @@ def test_saving_rgba(tmp_path: Path) -> None:
14811481

14821482
with Image.open(out) as reloaded:
14831483
reloaded_rgba = reloaded.convert("RGBA")
1484-
value = reloaded_rgba.load()[0, 0]
1484+
px = reloaded_rgba.load()
1485+
assert px is not None
1486+
value = px[0, 0]
14851487
assert isinstance(value, tuple)
14861488
assert value[3] == 0
14871489

0 commit comments

Comments
 (0)