Skip to content

Commit 6e70e8f

Browse files
author
Daniel Flores
committed
windows + webm test skips
1 parent c4eb3df commit 6e70e8f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/test_ops.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import os
1010
from functools import partial
1111

12-
from .utils import get_ffmpeg_major_version, in_fbcode
12+
from .utils import get_ffmpeg_major_version, in_fbcode, IS_WINDOWS
1313

1414
os.environ["TORCH_LOGS"] = "output_code"
1515
import json
@@ -1343,8 +1343,15 @@ def decode(self, file_path) -> torch.Tensor:
13431343
@pytest.mark.parametrize("format", ("mov", "mp4", "avi", "mkv", "webm", "flv"))
13441344
def test_video_encoder_test_round_trip(self, tmp_path, format):
13451345
ffmpeg_version = get_ffmpeg_major_version()
1346-
if ffmpeg_version == 4 and format == "webm":
1347-
pytest.skip("Codec for webm is not available in the FFmpeg4 installation.")
1346+
if format == "webm":
1347+
if ffmpeg_version == 4:
1348+
pytest.skip(
1349+
"Codec for webm is not available in the FFmpeg4 installation."
1350+
)
1351+
if IS_WINDOWS and ffmpeg_version in (6, 7):
1352+
pytest.skip(
1353+
"Codec for webm is not available in the FFmpeg6/7 installation on Windows."
1354+
)
13481355
asset = NASA_VIDEO
13491356
# Test that decode(encode(decode(asset))) == decode(asset)
13501357
source_frames = self.decode(str(asset.path)).data

0 commit comments

Comments
 (0)