Skip to content

Commit 3657a06

Browse files
committed
fix skipif
1 parent 810279c commit 3657a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def test_encode_jpeg_errors():
420420
encode_jpeg(torch.empty((100, 100), dtype=torch.uint8))
421421

422422

423-
@pytest.skipif(IS_MACOS, reason="https://github.com/pytorch/vision/issues/8031")
423+
@pytest.mark.skipif(IS_MACOS, reason="https://github.com/pytorch/vision/issues/8031")
424424
@pytest.mark.parametrize(
425425
"img_path",
426426
[pytest.param(jpeg_path, id=_get_safe_image_name(jpeg_path)) for jpeg_path in get_images(ENCODE_JPEG, ".jpg")],
@@ -439,7 +439,7 @@ def test_encode_jpeg(img_path):
439439
assert_equal(encoded_jpeg_torch, encoded_jpeg_pil)
440440

441441

442-
@pytest.skipif(IS_MACOS, reason="https://github.com/pytorch/vision/issues/8031")
442+
@pytest.mark.skipif(IS_MACOS, reason="https://github.com/pytorch/vision/issues/8031")
443443
@pytest.mark.parametrize(
444444
"img_path",
445445
[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)