BGR;16 does not fail on big-endian

This commit is contained in:
Andrew Murray 2024-04-25 11:06:04 +10:00 committed by Yay295
parent 98510570e6
commit 5faebadd56

View File

@ -1037,8 +1037,8 @@ class TestImageBytes:
@pytest.mark.parametrize("mode", modes)
def test_getdata_putdata(self, mode: str) -> None:
if is_big_endian and mode in ("BGR;15", "BGR;16"):
pytest.xfail(f"Known failure of {mode} on big-endian")
if is_big_endian and mode == "BGR;15":
pytest.xfail("Known failure of BGR;15 on big-endian")
im = hopper(mode)
reloaded = Image.new(mode, im.size)
reloaded.putdata(im.getdata())