mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 11:35:52 +03:00
Added tests for unimplemented bitcount
This commit is contained in:
parent
0051fc9cf8
commit
17be898fc4
BIN
Tests/images/unsupported_bitcount_luminance.dds
Normal file
BIN
Tests/images/unsupported_bitcount_luminance.dds
Normal file
Binary file not shown.
BIN
Tests/images/unsupported_bitcount_rgb.dds
Normal file
BIN
Tests/images/unsupported_bitcount_rgb.dds
Normal file
Binary file not shown.
|
@ -306,8 +306,19 @@ def test_palette():
|
|||
@pytest.mark.parametrize(
|
||||
"test_file",
|
||||
(
|
||||
"Tests/images/unknown_fourcc.dds",
|
||||
"Tests/images/unimplemented_fourcc.dds",
|
||||
"Tests/images/unsupported_bitcount_rgb.dds",
|
||||
"Tests/images/unsupported_bitcount_luminance.dds",
|
||||
),
|
||||
)
|
||||
def test_unsupported_bitcount(test_file):
|
||||
with pytest.raises(OSError):
|
||||
with Image.open(test_file):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"test_file",
|
||||
(
|
||||
"Tests/images/unimplemented_dxgi_format.dds",
|
||||
"Tests/images/unimplemented_pfflags.dds",
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue
Block a user