mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
commit
2f7caad37f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 862 B |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 861 B |
|
@ -350,25 +350,10 @@ def test_save_unsupported_mode(tmp_path):
|
|||
im.save(out)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("mode", "test_file"),
|
||||
(
|
||||
("L", "Tests/images/mode-l.dds"),
|
||||
("LA", "Tests/images/mode-la.dds"),
|
||||
("RGB", "Tests/images/mode-rgb.dds"),
|
||||
("RGBA", "Tests/images/mode-rgba.dds"),
|
||||
),
|
||||
)
|
||||
def test_open(mode, test_file):
|
||||
with Image.open(test_file) as im:
|
||||
assert im.mode == mode
|
||||
assert_image_equal_tofile(im, test_file.replace(".dds", ".png"))
|
||||
|
||||
|
||||
def test_open_rgb8():
|
||||
with Image.open("Tests/images/rgb8.dds") as im:
|
||||
assert im.mode == "L"
|
||||
assert_image_equal_tofile(im, "Tests/images/mode-l.png")
|
||||
assert_image_equal_tofile(im, "Tests/images/rgb8.png")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Reference in New Issue
Block a user