diff --git a/Tests/images/dxt1-rgb-4bbp-noalpha_MipMaps-1.png b/Tests/images/dxt1-rgb-4bbp-noalpha_MipMaps-1.png new file mode 100644 index 000000000..a308f0def Binary files /dev/null and b/Tests/images/dxt1-rgb-4bbp-noalpha_MipMaps-1.png differ diff --git a/Tests/images/dxt5-argb-8bbp-interpolatedalpha_MipMaps-1.png b/Tests/images/dxt5-argb-8bbp-interpolatedalpha_MipMaps-1.png new file mode 100644 index 000000000..f1e3520a8 Binary files /dev/null and b/Tests/images/dxt5-argb-8bbp-interpolatedalpha_MipMaps-1.png differ diff --git a/Tests/test_file_dds.py b/Tests/test_file_dds.py index 6914c5f6e..57721e976 100644 --- a/Tests/test_file_dds.py +++ b/Tests/test_file_dds.py @@ -17,7 +17,10 @@ class TestFileDds(PillowTestCase): self.assertEqual(im.format, "DDS") self.assertEqual(im.mode, "RGBA") self.assertEqual(im.size, (256, 256)) - self.assertIsInstance(im, DdsImagePlugin.DdsImageFile) + + target = Image.open(TEST_FILE_DXT1.replace('.dds', '.png')) + target.show() + self.assert_image_equal(target.convert('RGBA'), im) def test_sanity_dxt5(self): """Check DXT5 images can be opened""" @@ -26,7 +29,10 @@ class TestFileDds(PillowTestCase): self.assertEqual(im.format, "DDS") self.assertEqual(im.mode, "RGBA") self.assertEqual(im.size, (256, 256)) - self.assertIsInstance(im, DdsImagePlugin.DdsImageFile) + + target = Image.open(TEST_FILE_DXT5.replace('.dds', '.png')) + self.assert_image_equal(target, im) + def test_sanity_dxt3(self): """Check DXT3 images are not supported"""