Corrected big-endian check

This commit is contained in:
Andrew Murray 2024-04-27 14:08:36 +10:00
parent 824db7152d
commit 86fb383739

View File

@ -1050,7 +1050,7 @@ class TestImageBytes:
@pytest.mark.parametrize("mode", modes) @pytest.mark.parametrize("mode", modes)
def test_getdata_putdata(self, mode: str) -> None: def test_getdata_putdata(self, mode: str) -> None:
if is_big_endian and mode == "BGR;15": if is_big_endian() and mode == "BGR;15":
pytest.xfail("Known failure of BGR;15 on big-endian") pytest.xfail("Known failure of BGR;15 on big-endian")
im = hopper(mode) im = hopper(mode)
reloaded = helper_image_new(mode, im.size) reloaded = helper_image_new(mode, im.size)