Skip to content

Commit 5dc61cb

Browse files
authored
Skip jpeg comparison tests with PIL (#5169)
1 parent f948d79 commit 5dc61cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_image.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ def test_write_jpeg_reference(img_path, tmpdir):
478478
assert_equal(torch_bytes, pil_bytes)
479479

480480

481-
@pytest.mark.skipif(IS_WINDOWS, reason=("this test fails on windows because PIL uses libjpeg-turbo on windows"))
481+
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
482+
@pytest.mark.skip("this test fails because PIL uses libjpeg-turbo")
482483
@pytest.mark.parametrize(
483484
"img_path",
484485
[pytest.param(jpeg_path, id=_get_safe_image_name(jpeg_path)) for jpeg_path in get_images(ENCODE_JPEG, ".jpg")],
@@ -497,7 +498,8 @@ def test_encode_jpeg(img_path):
497498
assert_equal(encoded_jpeg_torch, encoded_jpeg_pil)
498499

499500

500-
@pytest.mark.skipif(IS_WINDOWS, reason=("this test fails on windows because PIL uses libjpeg-turbo on windows"))
501+
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
502+
@pytest.mark.skip("this test fails because PIL uses libjpeg-turbo")
501503
@pytest.mark.parametrize(
502504
"img_path",
503505
[pytest.param(jpeg_path, id=_get_safe_image_name(jpeg_path)) for jpeg_path in get_images(ENCODE_JPEG, ".jpg")],

0 commit comments

Comments
 (0)