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.
2 parents 8004234 + dd042da commit 5e91231Copy full SHA for 5e91231
Tests/test_file_gif.py
@@ -314,7 +314,7 @@ def test_roundtrip_save_all_1(tmp_path: Path) -> None:
314
def test_save_zero(size: tuple[int, int]) -> None:
315
b = BytesIO()
316
im = Image.new("RGB", size)
317
- with pytest.raises(SystemError):
+ with pytest.raises(ValueError, match="cannot write empty image"):
318
im.save(b, "GIF")
319
320
Tests/test_file_spider.py
@@ -72,7 +72,7 @@ def test_save(tmp_path: Path) -> None:
72
73
74
im = Image.new("1", size)
75
76
im.save(b, "SPIDER")
77
78
0 commit comments