mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-14 18:40:53 +03:00
Do not remove second load call
This commit is contained in:
parent
3a8eaf5892
commit
3222d36413
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user