Skip to content

Commit 3ffbb2a

Browse files
authored
Merge pull request #3476 from pygame-community/ankith26-png-pal
Add conditional skip to testSavePaletteAsPNG8
2 parents c14113d + 48c458f commit 3ffbb2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/image_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ def testSavePNG8(self):
268268
del reader
269269
os.remove(f_path)
270270

271+
@unittest.skipIf(
272+
"PG_DEPS_FROM_SYSTEM" in os.environ,
273+
"If we are using system dependencies, we don't know the backend used "
274+
"for PNG saving, and this test only works with libpng.",
275+
)
271276
def testSavePaletteAsPNG8(self):
272277
"""see if we can save a png with color values in the proper channels."""
273278
# Create a PNG file with known colors

0 commit comments

Comments
 (0)