Skip to content

Commit

Permalink
Skip flaky earth gif test on OSS CI (#8480)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Jun 7, 2024
1 parent b09b3f6 commit 27764a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import requests
import torch
import torchvision.transforms.functional as F
from common_utils import assert_equal, needs_cuda
from common_utils import assert_equal, IN_OSS_CI, needs_cuda
from PIL import __version__ as PILLOW_VERSION, Image, ImageOps, ImageSequence
from torchvision.io.image import (
_read_png_16,
Expand Down Expand Up @@ -569,6 +569,9 @@ def test_decode_gif(tmpdir, name, scripted):

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

0 comments on commit 27764a1

Please sign in to comment.