Skip to content

Commit 34395c7

Browse files
authored
Skip jpeg comparison tests with PIL (#5169) (#5232)
1 parent e7ec7e2 commit 34395c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/test_image.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,8 @@ def test_write_jpeg_reference(img_path, tmpdir):
443443
assert_equal(torch_bytes, pil_bytes)
444444

445445

446-
@pytest.mark.skipif(IS_WINDOWS, reason=(
447-
'this test fails on windows because PIL uses libjpeg-turbo on windows'
448-
))
446+
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
447+
@pytest.mark.skip("this test fails because PIL uses libjpeg-turbo")
449448
@pytest.mark.parametrize('img_path', [
450449
pytest.param(jpeg_path, id=_get_safe_image_name(jpeg_path))
451450
for jpeg_path in get_images(ENCODE_JPEG, ".jpg")
@@ -466,9 +465,8 @@ def test_encode_jpeg(img_path):
466465
assert_equal(encoded_jpeg_torch, encoded_jpeg_pil)
467466

468467

469-
@pytest.mark.skipif(IS_WINDOWS, reason=(
470-
'this test fails on windows because PIL uses libjpeg-turbo on windows'
471-
))
468+
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
469+
@pytest.mark.skip("this test fails because PIL uses libjpeg-turbo")
472470
@pytest.mark.parametrize('img_path', [
473471
pytest.param(jpeg_path, id=_get_safe_image_name(jpeg_path))
474472
for jpeg_path in get_images(ENCODE_JPEG, ".jpg")

0 commit comments

Comments
 (0)