Skip to content

Commit

Permalink
ignore BGR;15/16 test failure on big-endian
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Apr 20, 2024
1 parent 5c960d6 commit 9851057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
assert_image_similar_tofile,
assert_not_all_same,
hopper,
is_big_endian,
is_win32,
mark_if_feature_version,
modes,
Expand Down Expand Up @@ -1036,6 +1037,8 @@ def test_roundtrip_bytes_method(self, mode: str) -> None:

@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")
im = hopper(mode)
reloaded = Image.new(mode, im.size)
reloaded.putdata(im.getdata())
Expand Down

0 comments on commit 9851057

Please sign in to comment.