diff --git a/Tests/test_image.py b/Tests/test_image.py index fe43cea407f..63b2486bb05 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -665,7 +665,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)) @@ -768,7 +768,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 diff --git a/Tests/test_image_resize.py b/Tests/test_image_resize.py index 57fcf9a3463..1166371b8f9 100644 --- a/Tests/test_image_resize.py +++ b/Tests/test_image_resize.py @@ -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: