Skip to content

Commit 4d14991

Browse files
committed
Corrected argument types
1 parent af3b904 commit 4d14991

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def test_remap_palette(self) -> None:
667667
# Test illegal image mode
668668
with hopper() as im:
669669
with pytest.raises(ValueError):
670-
im.remap_palette(None)
670+
im.remap_palette([])
671671

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

772772
# Test that exif data is cleared after another load
773-
exif.load(None)
773+
exif.load(b"")
774774
assert not dict(exif)
775775

776776
# Test loading just the EXIF header

Tests/test_image_resize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def resize(mode: str, size: tuple[int, int] | list[int]) -> None:
309309
# Test unknown resampling filter
310310
with hopper() as im:
311311
with pytest.raises(ValueError):
312-
im.resize((10, 10), "unknown")
312+
im.resize((10, 10), -1)
313313

314314
@skip_unless_feature("libtiff")
315315
def test_transposed(self) -> None:

0 commit comments

Comments
 (0)