diff --git a/Tests/images/unimplemented_dxgi_format.dds b/Tests/images/unimplemented_dxgi_format.dds new file mode 100644 index 000000000..70860f2fc Binary files /dev/null and b/Tests/images/unimplemented_dxgi_format.dds differ diff --git a/Tests/test_file_dds.py b/Tests/test_file_dds.py index 0d95d3a65..d10fe2730 100644 --- a/Tests/test_file_dds.py +++ b/Tests/test_file_dds.py @@ -166,6 +166,12 @@ def test_dx10_r8g8b8a8_unorm_srgb(): ) +def test_unimplemented_dxgi_format(): + with pytest.raises(NotImplementedError): + with Image.open("Tests/images/unimplemented_dxgi_format.dds"): + pass + + def test_uncompressed_rgb(): """Check uncompressed RGB images can be opened"""