Skip to content

Commit

Permalink
Try another TGA workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Harris committed Nov 10, 2022
1 parent 9e9da0d commit 3103c70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Test/astc_test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,19 @@ def test_valid_ldr_input_formats(self):
if tli.Image.is_format_supported(imgFormat):
colIn = tli.Image(imIn).get_colors((7, 7))
colOut = tli.Image(imOut).get_colors((7, 7))

# Catch exception and add fallback for tga handling
# having unstable origin in ImageMagick
try:
self.assertColorSame(colIn, colOut)
continue
except AssertionError as ex:
if imgFormat != "tga":
raise ex

# Try yflipped TGA image
colIn = tli.Image(imIn).get_colors((7, 7))
colOut = tli.Image(imOut).get_colors((7, 1))
self.assertColorSame(colIn, colOut)

def test_valid_uncomp_ldr_output_formats(self):
Expand Down

0 comments on commit 3103c70

Please sign in to comment.