Skip to content

Commit 8d30aca

Browse files
committed
Write remux test output to sandbox instead of project root
1 parent 5acc3d1 commit 8d30aca

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_remux.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
import av
44
import av.datasets
55

6-
from .common import fate_suite
6+
from .common import fate_suite, sandboxed
77

88

99
def test_video_remux() -> None:
1010
input_path = av.datasets.curated("pexels/time-lapse-video-of-night-sky-857195.mp4")
11+
output_path = sandboxed("remuxed.mkv")
1112
input_ = av.open(input_path)
12-
output = av.open("remuxed.mkv", "w")
13+
output = av.open(output_path, "w")
1314

1415
in_stream = input_.streams.video[0]
1516
out_stream = output.add_stream_from_template(in_stream)
@@ -24,7 +25,7 @@ def test_video_remux() -> None:
2425
input_.close()
2526
output.close()
2627

27-
with av.open("remuxed.mkv") as container:
28+
with av.open(output_path) as container:
2829
# Assert output is a valid media file
2930
assert len(container.streams.video) == 1
3031
assert len(container.streams.audio) == 0

0 commit comments

Comments
 (0)