Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/test_file_webp.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_write_encoding_error_message(self, tmp_path: Path) -> None:

@pytest.mark.skipif(sys.maxsize <= 2**32, reason="Requires 64-bit system")
def test_write_encoding_error_bad_dimension(self, tmp_path: Path) -> None:
im = Image.new("L", (16384, 16384))
im = Image.new("L", (16384, 1))
with pytest.raises(ValueError) as e:
im.save(tmp_path / "temp.webp")
assert (
Expand Down
6 changes: 2 additions & 4 deletions Tests/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def test_tobytes(monkeypatch: pytest.MonkeyPatch) -> None:

@pytest.mark.skipif(sys.maxsize <= 2**32, reason="Requires 64-bit system")
def test_ysize() -> None:
numpy = pytest.importorskip("numpy", reason="NumPy not installed")

# Should not raise 'Integer overflow in ysize'
arr = numpy.zeros((46341, 46341), dtype=numpy.uint8)
Image.fromarray(arr)
with pytest.raises(ValueError, match="buffer is not large enough"):
Image.frombuffer("L", (46341, 46341), b"")