mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 03:25:53 +03:00
Combined width and height into size
This commit is contained in:
parent
2bbf5f0981
commit
e098481279
|
@ -91,17 +91,17 @@ class TestFileTiff:
|
|||
assert_image_similar_tofile(im, "Tests/images/pil136.png", 1)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"file_name,mode,w,h,offset",
|
||||
"file_name,mode,size,offset",
|
||||
[
|
||||
("tiff_wrong_bits_per_sample.tiff", "RGBA", 52, 53, 160),
|
||||
("tiff_wrong_bits_per_sample_2.tiff", "RGB", 16, 16, 8),
|
||||
("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):
|
||||
def test_wrong_bits_per_sample(self, file_name, mode, size, offset):
|
||||
with Image.open("Tests/images/" + file_name) as im:
|
||||
assert im.mode == mode
|
||||
assert im.size == (w, h)
|
||||
assert im.tile == [("raw", (0, 0, w, h), offset, (mode, 0, 1))]
|
||||
assert im.size == size
|
||||
assert im.tile == [("raw", (0, 0) + size, offset, (mode, 0, 1))]
|
||||
im.load()
|
||||
|
||||
def test_set_legacy_api(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user