Skip to content

Commit 7752af0

Browse files
committed
[backends] Skip corrupt video test on MoviePy awaiting Zulko/moviepy#2253
1 parent f1396a9 commit 7752af0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_video_stream.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,12 @@ def test_corrupt_video(vs_type: Type[VideoStream], corrupt_video_file: str):
354354
"""Test that backend handles video with corrupt frame gracefully with defaults."""
355355
if vs_type == VideoManager:
356356
pytest.skip(reason="VideoManager does not support handling corrupt videos.")
357+
if vs_type == VideoStreamMoviePy:
358+
pytest.skip(reason="https://github.com/Zulko/moviepy/pull/2253")
357359

358360
stream = vs_type(corrupt_video_file)
359361

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

0 commit comments

Comments
 (0)