We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4469ee0 commit 7d37984Copy full SHA for 7d37984
1 file changed
Tests/test_file_ppm.py
@@ -141,6 +141,12 @@ def test_pfm_big_endian(tmp_path: Path) -> None:
141
assert_image_equal_tofile(im, filename)
142
143
144
+def test_save_unsupported_mode(tmp_path: Path) -> None:
145
+ im = hopper("P")
146
+ with pytest.raises(OSError, match="cannot write mode P as PPM"):
147
+ im.save(tmp_path / "out.ppm")
148
+
149
150
@pytest.mark.parametrize(
151
"data",
152
[
0 commit comments