"vscode:/vscode.git/clone" did not exist on "593a5634142e52b537f9bfe1bbf131c7ade1185f"
Unverified Commit af16236d authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Skip test if connection issues on fate (#4284)

* Skip the test if the failure is due to a connection error.

* Add todo.
parent ddd14ffc
......@@ -2,6 +2,7 @@ import collections
import os
import pytest
from pytest import approx
import urllib
import torch
import torchvision
......@@ -177,7 +178,11 @@ class TestVideoApi:
assert (lb <= frame["pts"]) and (ub >= frame["pts"])
def test_fate_suite(self):
video_path = fate("sub/MovText_capability_tester.mp4", VIDEO_DIR)
# TODO: remove the try-except statement once the connectivity issues are resolved
try:
video_path = fate("sub/MovText_capability_tester.mp4", VIDEO_DIR)
except (urllib.error.URLError, ConnectionError) as error:
pytest.skip(f"Skipping due to connectivity issues: {error}")
vr = VideoReader(video_path)
metadata = vr.get_metadata()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment