Do not remove second load call

This commit is contained in:
Andrew Murray 2024-12-26 21:30:46 +11:00
parent 3a8eaf5892
commit 3222d36413
3 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,8 @@ def test_load() -> None:
assert px[0, 0] == (255, 255, 255) assert px[0, 0] == (255, 255, 255)
# Test again now that it has already been loaded once # Test again now that it has already been loaded once
px = im.load()
assert px is not None
assert px[0, 0] == (255, 255, 255) assert px[0, 0] == (255, 255, 255)

View File

@ -19,6 +19,8 @@ def test_load() -> None:
assert px[0, 0] == (0, 0, 0, 0) assert px[0, 0] == (0, 0, 0, 0)
# Test again now that it has already been loaded once # Test again now that it has already been loaded once
px = im.load()
assert px is not None
assert px[0, 0] == (0, 0, 0, 0) assert px[0, 0] == (0, 0, 0, 0)

View File

@ -26,4 +26,6 @@ def test_load() -> None:
assert px[0, 0] == 122 assert px[0, 0] == 122
# Test again now that it has already been loaded once # Test again now that it has already been loaded once
px = im.load()
assert px is not None
assert px[0, 0] == 122 assert px[0, 0] == 122