Skip to content

Commit 5c2106f

Browse files
authored
Add pytest skip to test_contiguity (#1121)
1 parent cbe186f commit 5c2106f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_encoders.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ def test_extra_options_errors(self, method, tmp_path, extra_options, error):
852852
),
853853
)
854854
def test_contiguity(self, method, tmp_path, device):
855+
if get_ffmpeg_major_version() == 4 and device == "cuda":
856+
pytest.skip("CUDA + FFmpeg 4 test is flaky")
855857
# Ensure that 2 sets of video frames with the same pixel values are encoded
856858
# in the same way, regardless of their memory layout. Here we encode 2 equal
857859
# frame tensors, one is contiguous while the other is non-contiguous.

0 commit comments

Comments
 (0)