@@ -1330,6 +1330,7 @@ def test_bad_input(self, tmp_path):
13301330
13311331class TestVideoEncoderOps :
13321332
1333+ # TODO-VideoEncoder: Parametrize test after moving to test_encoders
13331334 def test_bad_input (self , tmp_path ):
13341335 output_file = str (tmp_path / ".mp4" )
13351336
@@ -1445,7 +1446,16 @@ def test_video_encoder_round_trip(self, tmp_path, format, method):
14451446 assert_close (s_frame , rt_frame , atol = atol , rtol = 0 )
14461447
14471448 @pytest .mark .parametrize (
1448- "format" , ("mov" , "mp4" , "avi" , "mkv" , "webm" , "flv" , "gif" )
1449+ "format" ,
1450+ (
1451+ "mov" ,
1452+ "mp4" ,
1453+ "avi" ,
1454+ "mkv" ,
1455+ "flv" ,
1456+ "gif" ,
1457+ pytest .param ("webm" , marks = pytest .mark .slow ),
1458+ ),
14491459 )
14501460 def test_against_to_file (self , tmp_path , format ):
14511461 # Test that to_file and to_tensor produce the same results
@@ -1463,7 +1473,10 @@ def test_against_to_file(self, tmp_path, format):
14631473 encoded_tensor = encode_video_to_tensor (source_frames , format = format , ** params )
14641474
14651475 torch .testing .assert_close (
1466- self .decode (encoded_file ).data , self .decode (encoded_tensor ).data
1476+ self .decode (encoded_file ).data ,
1477+ self .decode (encoded_tensor ).data ,
1478+ atol = 0 ,
1479+ rtol = 0 ,
14671480 )
14681481
14691482 @pytest .mark .skipif (in_fbcode (), reason = "ffmpeg CLI not available" )
0 commit comments