We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e9da0d commit 3103c70Copy full SHA for 3103c70
Test/astc_test_functional.py
@@ -681,6 +681,19 @@ def test_valid_ldr_input_formats(self):
681
if tli.Image.is_format_supported(imgFormat):
682
colIn = tli.Image(imIn).get_colors((7, 7))
683
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))
697
self.assertColorSame(colIn, colOut)
698
699
def test_valid_uncomp_ldr_output_formats(self):
0 commit comments