Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix test__probe on FFmpeg 7
We now get the (more precise?) result 7.035646, so make the check
less exact.
  • Loading branch information
emilazy committed Aug 4, 2024
commit eeaa83398ba1d4e5b470196f7d4c7ca4ba9e8ddf
3 changes: 2 additions & 1 deletion ffmpeg/tests/test_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ def test_pipe():
def test__probe():
data = ffmpeg.probe(TEST_INPUT_FILE1)
assert set(data.keys()) == {'format', 'streams'}
assert data['format']['duration'] == '7.036000'
assert data['format']['duration'][:4] == '7.03'
assert len(data['format']['duration']) == 8


@pytest.mark.skipif(sys.version_info < (3, 3), reason='requires python3.3 or higher')
Expand Down