From 3103c70ccf6194e3796467c466f5adb047deac7f Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Thu, 10 Nov 2022 09:46:58 +0000 Subject: [PATCH] Try another TGA workaround --- Test/astc_test_functional.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Test/astc_test_functional.py b/Test/astc_test_functional.py index 2fbff5311..7c1559d26 100644 --- a/Test/astc_test_functional.py +++ b/Test/astc_test_functional.py @@ -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):