Skip to content

Commit 27764a1

Browse files
authored
Skip flaky earth gif test on OSS CI (#8480)
1 parent b09b3f6 commit 27764a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import requests
1111
import torch
1212
import torchvision.transforms.functional as F
13-
from common_utils import assert_equal, needs_cuda
13+
from common_utils import assert_equal, IN_OSS_CI, needs_cuda
1414
from PIL import __version__ as PILLOW_VERSION, Image, ImageOps, ImageSequence
1515
from torchvision.io.image import (
1616
_read_png_16,
@@ -569,6 +569,9 @@ def test_decode_gif(tmpdir, name, scripted):
569569

570570
path = tmpdir / f"{name}.gif"
571571
if name == "earth":
572+
if IN_OSS_CI:
573+
# TODO: Fix this... one day.
574+
pytest.skip("Skipping 'earth' test as it's flaky on OSS CI")
572575
url = "https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"
573576
else:
574577
url = f"https://sourceforge.net/p/giflib/code/ci/master/tree/pic/{name}.gif?format=raw"

0 commit comments

Comments
 (0)