diff --git a/Tests/test_pyarrow.py b/Tests/test_pyarrow.py index 7a161f2ac..f282f2c00 100644 --- a/Tests/test_pyarrow.py +++ b/Tests/test_pyarrow.py @@ -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) diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index ec7c7cb08..06ea0359c 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -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: