Skip to content

Commit 5fca462

Browse files
committed
Add LBM test skip for SDL_image regression
1 parent 3ea51b9 commit 5fca462

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/image_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,12 +1763,15 @@ def test_load_extended(self):
17631763
("crimson.pnm", (220, 20, 60, 255)),
17641764
("scarlet.webp", (252, 14, 53, 255)),
17651765
("tomato.xcf", (255, 99, 71, 255)),
1766-
("magenta.lbm", (255, 0, 255, 255)),
17671766
]
17681767

17691768
if pygame.image.get_sdl_image_version() > (2, 0, 5):
17701769
filename_expected_color.append(("purple.qoi", (159, 38, 240, 255)))
17711770

1771+
# SDL_image 2.8.0 and 2.8.1 have an LBM file loading regression
1772+
if not (2, 8, 0) <= pygame.image.get_sdl_image_version() < (2, 8, 2):
1773+
filename_expected_color.append(("magenta.lbm", (255, 0, 255, 255)))
1774+
17721775
for filename, expected_color in filename_expected_color:
17731776
if filename.endswith("svg") and sdl_image_svg_jpeg_save_bug:
17741777
# SDL_image 2.0.5 and older has an svg loading bug on big

0 commit comments

Comments
 (0)