diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index 5971e684fb5..2309631b072 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -32,12 +32,6 @@ jobs: docker: [ alpine, amazon-2-amd64, - amazon-2023-amd64, - arch, - centos-7-amd64, - centos-stream-8-amd64, - centos-stream-9-amd64, - debian-11-bullseye-amd64, debian-12-bookworm-x86, debian-12-bookworm-amd64, ] diff --git a/Tests/test_lib_image.py b/Tests/test_lib_image.py index da10762f3f4..5ee103d7da6 100644 --- a/Tests/test_lib_image.py +++ b/Tests/test_lib_image.py @@ -14,8 +14,12 @@ 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 + if mode == "BGR;24": + assert False diff --git a/src/_imaging.c b/src/_imaging.c index 07e58d86648..e631ae251fc 100644 --- a/src/_imaging.c +++ b/src/_imaging.c @@ -3797,6 +3797,7 @@ _compare_pixels( UINT32 *line_b = (UINT32*)pixels_b[y]; for (x = 0; x < xsize; x++, line_a++, line_b++) { if ((*line_a & mask) != (*line_b & mask)) { + printf("mask fail linea %u lineb %u mask %u lineamask %u linebmask %u\n", *line_a, *line_b, mask, *line_a & mask, *line_b & mask); return 1; } }