Skip to content

Commit db658cc

Browse files
committed
Skip test on SDL_image 2.0.5
1 parent ad292f2 commit db658cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/image_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ def testSavePNG32(self):
196196
del reader
197197
os.remove(f_path)
198198

199+
@unittest.skipIf(
200+
pygame.image.get_sdl_image_version() == (2, 0, 5),
201+
"SDL image 2.0.5 png saving will save this 24 bit as RGBA, causing reader.asRGB8 to fail",
202+
)
199203
def testSavePNG24(self):
200204
"""see if we can save a png with color values in the proper channels."""
201205
# Create a PNG file with known colors

0 commit comments

Comments
 (0)