Skip to content

Disabling the video tests that seg fault #4405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def temp_video(num_frames, height, width, fps, lossless=False, video_codec=None,
os.unlink(f.name)


# Rollback once #4402 is fixed
@pytest.mark.skipif(sys.platform == "darwin", reason=(
'These tests segfault on MacOS; temporarily disabling.'
))
@pytest.mark.skipif(get_video_backend() != "pyav" and not io._HAS_VIDEO_OPT,
reason="video_reader backend not available")
@pytest.mark.skipif(av is None, reason="PyAV unavailable")
Expand Down
5 changes: 5 additions & 0 deletions test/test_video_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import itertools
import math
import os
import sys
import pytest
from pytest import approx
from fractions import Fraction
Expand Down Expand Up @@ -269,6 +270,10 @@ def _get_video_tensor(video_dir, video_file):
return full_path, video_tensor


# Rollback once #4402 is fixed
@pytest.mark.skipif(sys.platform == "darwin", reason=(
'These tests segfault on MacOS; temporarily disabling.'
))
@pytest.mark.skipif(av is None, reason="PyAV unavailable")
@pytest.mark.skipif(_HAS_VIDEO_OPT is False, reason="Didn't compile with ffmpeg")
class TestVideoReader:
Expand Down
5 changes: 5 additions & 0 deletions test/test_videoapi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import collections
import os
import sys
import pytest
from pytest import approx
import urllib
Expand Down Expand Up @@ -64,6 +65,10 @@ def fate(name, path="."):
}


# Rollback once #4402 is fixed
@pytest.mark.skipif(sys.platform == "darwin", reason=(
'These tests segfault on MacOS; temporarily disabling.'
))
@pytest.mark.skipif(_HAS_VIDEO_OPT is False, reason="Didn't compile with ffmpeg")
@PY39_SKIP
class TestVideoApi:
Expand Down