|
10 | 10 | import torchvision.io as io
|
11 | 11 | from numpy.random import randint
|
12 | 12 | from torchvision.io import _HAS_VIDEO_OPT
|
| 13 | +from common_utils import PY39_SKIP |
13 | 14 |
|
14 | 15 |
|
15 | 16 | try:
|
@@ -426,6 +427,7 @@ def test_stress_test_read_video_from_file(self):
|
426 | 427 | audio_timebase_den,
|
427 | 428 | )
|
428 | 429 |
|
| 430 | + @PY39_SKIP |
429 | 431 | def test_read_video_from_file(self):
|
430 | 432 | """
|
431 | 433 | Test the case when decoder starts with a video file to decode frames.
|
@@ -471,6 +473,7 @@ def test_read_video_from_file(self):
|
471 | 473 | # compare decoding results
|
472 | 474 | self.compare_decoding_result(tv_result, pyav_result, config)
|
473 | 475 |
|
| 476 | + @PY39_SKIP |
474 | 477 | def test_read_video_from_file_read_single_stream_only(self):
|
475 | 478 | """
|
476 | 479 | Test the case when decoder starts with a video file to decode frames, and
|
@@ -779,6 +782,7 @@ def test_read_video_from_file_rescale_width_and_height(self):
|
779 | 782 | self.assertEqual(tv_result[0].size(1), height)
|
780 | 783 | self.assertEqual(tv_result[0].size(2), width)
|
781 | 784 |
|
| 785 | + @PY39_SKIP |
782 | 786 | def test_read_video_from_file_audio_resampling(self):
|
783 | 787 | """
|
784 | 788 | Test the case when decoder starts with a video file to decode frames, and
|
@@ -838,6 +842,7 @@ def test_read_video_from_file_audio_resampling(self):
|
838 | 842 | delta=0.1 * asample_rate.item(),
|
839 | 843 | )
|
840 | 844 |
|
| 845 | + @PY39_SKIP |
841 | 846 | def test_compare_read_video_from_memory_and_file(self):
|
842 | 847 | """
|
843 | 848 | Test the case when video is already in memory, and decoder reads data in memory
|
@@ -904,6 +909,7 @@ def test_compare_read_video_from_memory_and_file(self):
|
904 | 909 | # finally, compare results decoded from memory and file
|
905 | 910 | self.compare_decoding_result(tv_result_memory, tv_result_file)
|
906 | 911 |
|
| 912 | + @PY39_SKIP |
907 | 913 | def test_read_video_from_memory(self):
|
908 | 914 | """
|
909 | 915 | Test the case when video is already in memory, and decoder reads data in memory
|
@@ -948,6 +954,7 @@ def test_read_video_from_memory(self):
|
948 | 954 | self.check_separate_decoding_result(tv_result, config)
|
949 | 955 | self.compare_decoding_result(tv_result, pyav_result, config)
|
950 | 956 |
|
| 957 | + @PY39_SKIP |
951 | 958 | def test_read_video_from_memory_get_pts_only(self):
|
952 | 959 | """
|
953 | 960 | Test the case when video is already in memory, and decoder reads data in memory.
|
@@ -1017,6 +1024,7 @@ def test_read_video_from_memory_get_pts_only(self):
|
1017 | 1024 | self.assertEqual(tv_result_pts_only[5].numel(), 0)
|
1018 | 1025 | self.compare_decoding_result(tv_result, tv_result_pts_only)
|
1019 | 1026 |
|
| 1027 | + @PY39_SKIP |
1020 | 1028 | def test_read_video_in_range_from_memory(self):
|
1021 | 1029 | """
|
1022 | 1030 | Test the case when video is already in memory, and decoder reads data in memory.
|
@@ -1192,6 +1200,7 @@ def test_probe_video_from_memory_script(self):
|
1192 | 1200 | probe_result = scripted_fun(video_tensor)
|
1193 | 1201 | self.check_meta_result(probe_result, config)
|
1194 | 1202 |
|
| 1203 | + @PY39_SKIP |
1195 | 1204 | def test_read_video_from_memory_scripted(self):
|
1196 | 1205 | """
|
1197 | 1206 | Test the case when video is already in memory, and decoder reads data in memory
|
|
0 commit comments