Skip to content

Commit

Permalink
[backends] Skip corrupt video test on MoviePy awaiting Zulko/moviepy#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Nov 23, 2024
1 parent f1396a9 commit 7752af0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_video_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,12 @@ def test_corrupt_video(vs_type: Type[VideoStream], corrupt_video_file: str):
"""Test that backend handles video with corrupt frame gracefully with defaults."""
if vs_type == VideoManager:
pytest.skip(reason="VideoManager does not support handling corrupt videos.")
if vs_type == VideoStreamMoviePy:
pytest.skip(reason="https://github.com/Zulko/moviepy/pull/2253")

stream = vs_type(corrupt_video_file)

# OpenCV usually fails to read the video at frame 45, so we make sure all backends can
# get to 60 without reporting a failure.
# OpenCV usually fails to read the video at frame 45, but the remaining frames all seem to
# decode just fine. Make sure all backends can get to 60 without reporting a failure.
for frame in range(60):
assert stream.read() is not False, "Failed on frame %d!" % frame

0 comments on commit 7752af0

Please sign in to comment.