diff --git a/Tests/test_pyarrow.py b/Tests/test_pyarrow.py index 7a161f2ac12..f282f2c0059 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 ec7c7cb0813..06ea0359c45 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -110,7 +110,7 @@ def _load_pilfont(self, filename: str) -> None: except Exception: pass else: - if image and image.mode in ("1", "L"): + if image.mode in ("1", "L"): break else: if image: