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 ...@@ -2,6 +2,7 @@ import collections
import os import os
import pytest import pytest
from pytest import approx from pytest import approx
import urllib
import torch import torch
import torchvision import torchvision
...@@ -177,7 +178,11 @@ class TestVideoApi: ...@@ -177,7 +178,11 @@ class TestVideoApi:
assert (lb <= frame["pts"]) and (ub >= frame["pts"]) assert (lb <= frame["pts"]) and (ub >= frame["pts"])
def test_fate_suite(self): 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) vr = VideoReader(video_path)
metadata = vr.get_metadata() 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