Skip to content

Commit

Permalink
Update image_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Dec 10, 2023
1 parent d8c55a5 commit 346d3b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1761,9 +1761,11 @@ def test_load_extended(self):
("teal.svg", (0, 128, 128, 255)),
("crimson.pnm", (220, 20, 60, 255)),
("scarlet.webp", (252, 14, 53, 255)),
("purple.qoi", (159, 38, 240, 255)),
]

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

for filename, expected_color in filename_expected_color:
if filename.endswith("svg") and sdl_image_svg_jpeg_save_bug:
# SDL_image 2.0.5 and older has an svg loading bug on big
Expand Down

0 comments on commit 346d3b2

Please sign in to comment.