mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-24 04:56:57 +03:00
Test saving unsupported mode
This commit is contained in:
parent
4469ee0fc0
commit
7d379842c1
|
@ -141,6 +141,12 @@ def test_pfm_big_endian(tmp_path: Path) -> None:
|
|||
assert_image_equal_tofile(im, filename)
|
||||
|
||||
|
||||
def test_save_unsupported_mode(tmp_path: Path) -> None:
|
||||
im = hopper("P")
|
||||
with pytest.raises(OSError, match="cannot write mode P as PPM"):
|
||||
im.save(tmp_path / "out.ppm")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"data",
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue
Block a user