Image will never be None (#9512)
This commit is contained in:
commit
8d801bcafa
@ -112,8 +112,6 @@ def test_to_array(mode: str, dtype: pyarrow.DataType, mask: list[int] | None) ->
|
||||
|
||||
reloaded = Image.fromarrow(arr, mode, img.size)
|
||||
|
||||
assert reloaded
|
||||
|
||||
assert_image_equal(img, reloaded)
|
||||
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ class ImageFont:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
if image and image.mode in ("1", "L"):
|
||||
if image.mode in ("1", "L"):
|
||||
break
|
||||
else:
|
||||
if image:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user