Skip to content

Commit 11113db

Browse files
committed
Fix?
1 parent 2fc317b commit 11113db

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

test/VideoDecoderTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ std::string getResourcePath(const std::string& filename) {
3434
#else
3535
std::filesystem::path dirPath = std::filesystem::path(__FILE__);
3636
std::string filepath =
37-
dirPath.parent_path().string() + "/../resources/" + filename;
37+
dirPath.parent_path().string() + "/resources/" + filename;
3838
#endif
3939
return filepath;
4040
}

test/test_decoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
VideoStreamMetadata,
1919
)
2020

21-
from ..utils import (
21+
from .utils import (
2222
assert_frames_equal,
2323
AV1_VIDEO,
2424
cpu_and_cuda,

test/test_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919
from torchcodec.decoders import AudioDecoder, VideoDecoder
2020

21-
from ..utils import NASA_AUDIO_MP3, NASA_VIDEO
21+
from .utils import NASA_AUDIO_MP3, NASA_VIDEO
2222

2323

2424
# TODO: Expected values in these tests should be based on the assets's

test/test_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
seek_to_pts,
4040
)
4141

42-
from ..utils import (
42+
from .utils import (
4343
assert_frames_equal,
4444
cpu_and_cuda,
4545
NASA_AUDIO,

test/test_samplers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from torchcodec.samplers._index_based import _build_all_clips_indices
2020
from torchcodec.samplers._time_based import _build_all_clips_timestamps
2121

22-
from ..utils import assert_frames_equal, NASA_VIDEO
22+
from .utils import assert_frames_equal, NASA_VIDEO
2323

2424

2525
def _assert_output_type_and_shapes(

test/test_video_clip_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
VideoClipSampler,
1111
)
1212

13-
from ..utils import NASA_VIDEO
13+
from .utils import NASA_VIDEO
1414

1515

1616
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)