Skip to content

Commit bfff7f9

Browse files
committed
Fix test_write_video_with_audio
1 parent 120e22b commit bfff7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_io.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77
import torch
88
import torchvision.io as io
9-
from common_utils import assert_equal
9+
from common_utils import assert_equal, cpu_and_cuda
1010
from torchvision import get_video_backend
1111

1212

@@ -255,7 +255,7 @@ def test_read_video_partially_corrupted_file(self):
255255
assert_equal(video, data)
256256

257257
@pytest.mark.skipif(sys.platform == "win32", reason="temporarily disabled on Windows")
258-
@pytest.mark.parametrize("device", ["cpu", "cuda"])
258+
@pytest.mark.parametrize("device", cpu_and_cuda())
259259
def test_write_video_with_audio(self, device, tmpdir):
260260
f_name = os.path.join(VIDEO_DIR, "R6llTwEh07w.mp4")
261261
video_tensor, audio_tensor, info = io.read_video(f_name, pts_unit="sec")

0 commit comments

Comments
 (0)