Skip to content

Commit

Permalink
Corrected argument types
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 9, 2025
1 parent af3b904 commit 4d14991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def test_remap_palette(self) -> None:
# Test illegal image mode
with hopper() as im:
with pytest.raises(ValueError):
im.remap_palette(None)
im.remap_palette([])

def test_remap_palette_transparency(self) -> None:
im = Image.new("P", (1, 2), (0, 0, 0))
Expand Down Expand Up @@ -770,7 +770,7 @@ def test_empty_exif(self) -> None:
assert dict(exif)

# Test that exif data is cleared after another load
exif.load(None)
exif.load(b"")
assert not dict(exif)

# Test loading just the EXIF header
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_image_resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def resize(mode: str, size: tuple[int, int] | list[int]) -> None:
# Test unknown resampling filter
with hopper() as im:
with pytest.raises(ValueError):
im.resize((10, 10), "unknown")
im.resize((10, 10), -1)

@skip_unless_feature("libtiff")
def test_transposed(self) -> None:
Expand Down

0 comments on commit 4d14991

Please sign in to comment.