Skip to content
Merged
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
4 changes: 2 additions & 2 deletions Tests/test_image_getdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_index_out_of_range() -> None:
hopper_data = hopper().getdata()
for index in (128 * 128, -128 * 128 - 1, 1 << 40):
with pytest.raises(IndexError):
_ = hopper_data[index]
hopper_data[index]


def test_iteration_matches_indexing() -> None:
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_empty_image(size: tuple[int, int]) -> None:
assert len(data) == 0
assert list(data) == []
with pytest.raises(IndexError):
_ = data[0]
data[0]


def test_outlives_the_image() -> None:
Expand Down
Loading