mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-22 23:34:38 +03:00
Corrected argument types
This commit is contained in:
parent
af3b904233
commit
4d14991604
|
@ -667,7 +667,7 @@ class TestImage:
|
||||||
# Test illegal image mode
|
# Test illegal image mode
|
||||||
with hopper() as im:
|
with hopper() as im:
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
im.remap_palette(None)
|
im.remap_palette([])
|
||||||
|
|
||||||
def test_remap_palette_transparency(self) -> None:
|
def test_remap_palette_transparency(self) -> None:
|
||||||
im = Image.new("P", (1, 2), (0, 0, 0))
|
im = Image.new("P", (1, 2), (0, 0, 0))
|
||||||
|
@ -770,7 +770,7 @@ class TestImage:
|
||||||
assert dict(exif)
|
assert dict(exif)
|
||||||
|
|
||||||
# Test that exif data is cleared after another load
|
# Test that exif data is cleared after another load
|
||||||
exif.load(None)
|
exif.load(b"")
|
||||||
assert not dict(exif)
|
assert not dict(exif)
|
||||||
|
|
||||||
# Test loading just the EXIF header
|
# Test loading just the EXIF header
|
||||||
|
|
|
@ -309,7 +309,7 @@ class TestImageResize:
|
||||||
# Test unknown resampling filter
|
# Test unknown resampling filter
|
||||||
with hopper() as im:
|
with hopper() as im:
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
im.resize((10, 10), "unknown")
|
im.resize((10, 10), -1)
|
||||||
|
|
||||||
@skip_unless_feature("libtiff")
|
@skip_unless_feature("libtiff")
|
||||||
def test_transposed(self) -> None:
|
def test_transposed(self) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user