From a84dd6a505ad38b46bbaa69d3049a5bfee945f96 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 12:20:26 +1100 Subject: [PATCH] static --- Tests/test_lib_image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/test_lib_image.py b/Tests/test_lib_image.py index da10762f3f4..5cfad1ca3a0 100644 --- a/Tests/test_lib_image.py +++ b/Tests/test_lib_image.py @@ -14,8 +14,10 @@ def test_equal(mode): num_img_bytes = len(Image.new(mode, (2, 2)).tobytes()) # alternatively, random.randbytes() in Python 3.9 - data = secrets.token_bytes(num_img_bytes) + data = b"\xa4\xf6\x1a\xd4\xee\x15[EI\xf1\xfb^"#secrets.token_bytes(num_img_bytes) + print("input", data) img_a = Image.frombytes(mode, (2, 2), data) img_b = Image.frombytes(mode, (2, 2), data) assert img_a.tobytes() == img_b.tobytes() + print("tobytes", img_a.tobytes(), img_b.tobytes()) assert img_a.im == img_b.im