Skip to content

Commit d54a1e9

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Skip libavif/libheic tests (#8976)
Reviewed By: scotts Differential Revision: D77998646 fbshipit-source-id: 11448f53c0e3a1355d632ef411fd6b27f86a05d0
1 parent 4d0b837 commit d54a1e9

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/test_image.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -897,12 +897,16 @@ def test_decode_gif(tmpdir, name, scripted):
897897
(decode_gif, re.escape("DGifOpenFileName() failed - 103")),
898898
(decode_webp, "WebPGetFeatures failed."),
899899
pytest.param(
900-
decode_avif, "BMFF parsing failed", marks=pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
900+
decode_avif,
901+
"BMFF parsing failed",
902+
# marks=pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
903+
marks=pytest.mark.skipif(True, reason="Skipping avif/heic tests for now."),
901904
),
902905
pytest.param(
903906
decode_heic,
904907
"Invalid input: No 'ftyp' box",
905-
marks=pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE),
908+
# marks=pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE),
909+
marks=pytest.mark.skipif(True, reason="Skipping avif/heic tests for now."),
906910
),
907911
],
908912
)
@@ -961,7 +965,8 @@ def test_decode_webp_against_pil(decode_fun, scripted, mode, pil_mode, filename)
961965
img += 123 # make sure image buffer wasn't freed by underlying decoding lib
962966

963967

964-
@pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
968+
# @pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
969+
@pytest.mark.skipif(True, reason="Skipping avif/heic tests for now.")
965970
@pytest.mark.parametrize("decode_fun", (decode_avif,))
966971
def test_decode_avif(decode_fun):
967972
encoded_bytes = read_file(next(get_images(FAKEDATA_DIR, ".avif")))
@@ -973,7 +978,8 @@ def test_decode_avif(decode_fun):
973978

974979
# Note: decode_image fails because some of these files have a (valid) signature
975980
# we don't recognize. We should probably use libmagic....
976-
@pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
981+
# @pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
982+
@pytest.mark.skipif(True, reason="Skipping avif/heic tests for now.")
977983
@pytest.mark.parametrize("decode_fun", (decode_avif, decode_heic))
978984
@pytest.mark.parametrize(
979985
"mode, pil_mode",
@@ -1050,7 +1056,8 @@ def test_decode_avif_heic_against_pil(decode_fun, mode, pil_mode, filename):
10501056
torch.testing.assert_close(img, from_pil, rtol=0, atol=3)
10511057

10521058

1053-
@pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
1059+
# @pytest.mark.skipif(not IS_LINUX, reason=HEIC_AVIF_MESSAGE)
1060+
@pytest.mark.skipif(True, reason="Skipping avif/heic tests for now.")
10541061
@pytest.mark.parametrize("decode_fun", (decode_heic,))
10551062
def test_decode_heic(decode_fun):
10561063
encoded_bytes = read_file(next(get_images(FAKEDATA_DIR, ".heic")))

0 commit comments

Comments
 (0)