Skip to content

Commit 3103c70

Browse files
author
Peter Harris
committed
Try another TGA workaround
1 parent 9e9da0d commit 3103c70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Test/astc_test_functional.py

+13
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,19 @@ def test_valid_ldr_input_formats(self):
681681
if tli.Image.is_format_supported(imgFormat):
682682
colIn = tli.Image(imIn).get_colors((7, 7))
683683
colOut = tli.Image(imOut).get_colors((7, 7))
684+
685+
# Catch exception and add fallback for tga handling
686+
# having unstable origin in ImageMagick
687+
try:
688+
self.assertColorSame(colIn, colOut)
689+
continue
690+
except AssertionError as ex:
691+
if imgFormat != "tga":
692+
raise ex
693+
694+
# Try yflipped TGA image
695+
colIn = tli.Image(imIn).get_colors((7, 7))
696+
colOut = tli.Image(imOut).get_colors((7, 1))
684697
self.assertColorSame(colIn, colOut)
685698

686699
def test_valid_uncomp_ldr_output_formats(self):

0 commit comments

Comments
 (0)