From 3222d3641338489c3bccf44db5c78a22d412f3a6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 26 Dec 2024 21:30:46 +1100 Subject: [PATCH] Do not remove second load call --- Tests/test_file_eps.py | 2 ++ Tests/test_file_gbr.py | 2 ++ Tests/test_file_wal.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Tests/test_file_eps.py b/Tests/test_file_eps.py index 1c3a2a1d1..506e36e7d 100644 --- a/Tests/test_file_eps.py +++ b/Tests/test_file_eps.py @@ -102,6 +102,8 @@ def test_load() -> None: assert px[0, 0] == (255, 255, 255) # 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) diff --git a/Tests/test_file_gbr.py b/Tests/test_file_gbr.py index 19ef2ddde..1b834cd3c 100644 --- a/Tests/test_file_gbr.py +++ b/Tests/test_file_gbr.py @@ -19,6 +19,8 @@ def test_load() -> None: assert px[0, 0] == (0, 0, 0, 0) # 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) diff --git a/Tests/test_file_wal.py b/Tests/test_file_wal.py index bd1036712..b15d79d61 100644 --- a/Tests/test_file_wal.py +++ b/Tests/test_file_wal.py @@ -26,4 +26,6 @@ def test_load() -> None: assert px[0, 0] == 122 # Test again now that it has already been loaded once + px = im.load() + assert px is not None assert px[0, 0] == 122