mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
Lint
This commit is contained in:
parent
bb5a090f60
commit
2bbf5f0981
|
@ -90,10 +90,13 @@ class TestFileTiff:
|
|||
|
||||
assert_image_similar_tofile(im, "Tests/images/pil136.png", 1)
|
||||
|
||||
@pytest.mark.parametrize("file_name,mode,w,h,offset", [
|
||||
("tiff_wrong_bits_per_sample.tiff","RGBA",52,53,160),
|
||||
("tiff_wrong_bits_per_sample_2.tiff","RGB",16,16,8),
|
||||
])
|
||||
@pytest.mark.parametrize(
|
||||
"file_name,mode,w,h,offset",
|
||||
[
|
||||
("tiff_wrong_bits_per_sample.tiff", "RGBA", 52, 53, 160),
|
||||
("tiff_wrong_bits_per_sample_2.tiff", "RGB", 16, 16, 8),
|
||||
],
|
||||
)
|
||||
def test_wrong_bits_per_sample(self, file_name, mode, w, h, offset):
|
||||
with Image.open("Tests/images/" + file_name) as im:
|
||||
assert im.mode == mode
|
||||
|
|
Loading…
Reference in New Issue
Block a user