File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 66import pytest
77import torch
88import torchvision .io as io
9- from common_utils import assert_equal
9+ from common_utils import assert_equal , cpu_and_cuda
1010from 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" )
You can’t perform that action at this time.
0 commit comments