8000 Add test for PathLike input and output. · kkroening/ffmpeg-python@8db9b74 · GitHub
[go: up one dir, main page]

Skip to content < 8000 span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">

Commit 8db9b74

Browse files
committed
Add test for PathLike input and output.
1 parent 23d02ba commit 8db9b74

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ffmpeg/tests/test_ffmpeg.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ def test_fluent_complex_filter():
7979
).output('dummy2.mp4')
8080

8181

82+
@pytest.mark.skipif(sys.version_info < (3, 6), reason='requires python3.6 or higher')
83+
def tes 6B56 t_pathlike_input_output():
84+
from pathlib import Path
85+
base = ffmpeg.input(Path("dummy.mp4"))
86+
base.output(filename=Path("dummy2.mp4"))
87+
base.output(Path("dummy3.mp4"))
88+
89+
8290
def test_node_repr():
8391
in_file = ffmpeg.input('dummy.mp4')
8492
trim1 = ffmpeg.trim(in_file, start_frame=10, end_frame=20)

0 commit comments

Comments
 (0)
0