mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Added tests for unimplemented formats
This commit is contained in:
parent
148d320b40
commit
bbfbda3d4f
BIN
Tests/images/unimplemented_dxgi_format.dds
Normal file
BIN
Tests/images/unimplemented_dxgi_format.dds
Normal file
Binary file not shown.
BIN
Tests/images/unimplemented_pixel_format.dds
Executable file
BIN
Tests/images/unimplemented_pixel_format.dds
Executable file
Binary file not shown.
|
@ -68,6 +68,10 @@ class TestFileDds(PillowTestCase):
|
|||
|
||||
self.assert_image_equal(target, im)
|
||||
|
||||
def test_unimplemented_dxgi_format(self):
|
||||
self.assertRaises(NotImplementedError, Image.open,
|
||||
"Tests/images/unimplemented_dxgi_format.dds")
|
||||
|
||||
def test_uncompressed_rgb(self):
|
||||
"""Check uncompressed RGB images can be opened"""
|
||||
|
||||
|
@ -125,3 +129,7 @@ class TestFileDds(PillowTestCase):
|
|||
im.load()
|
||||
|
||||
self.assertRaises(IOError, short_file)
|
||||
|
||||
def test_unimplemented_pixel_format(self):
|
||||
self.assertRaises(NotImplementedError, Image.open,
|
||||
"Tests/images/unimplemented_pixel_format.dds")
|
||||
|
|
Loading…
Reference in New Issue
Block a user