Skip to content

Commit a77a78e

Browse files
committed
Skip test if pyav not available
1 parent 3e7a33e commit a77a78e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_datasets_samplers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def get_list_of_videos(num_videos=5, sizes=None, fps=None):
3333
yield names
3434

3535

36+
@unittest.skipIf(not io.video._av_available(), "this test requires av")
3637
class Tester(unittest.TestCase):
3738
def test_random_clip_sampler(self):
3839
with get_list_of_videos(num_videos=3, sizes=[25, 25, 25]) as video_list:

0 commit comments

Comments
 (0)