projects/aports·blob master · refs

27 lines · 995 B

1Patch-Source: https://github.com/kkroening/ffmpeg-python/pull/848
2---
3From eeaa83398ba1d4e5b470196f7d4c7ca4ba9e8ddf Mon Sep 17 00:00:00 2001
4From: Emily <[email protected]>
5Date: Sun, 4 Aug 2024 00:32:50 +0100
6Subject: [PATCH] Fix `test__probe` on FFmpeg 7
7
8We now get the (more precise?) result 7.035646, so make the check
9less exact.
10---
11 ffmpeg/tests/test_ffmpeg.py | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py
15index 8dbc271a..c3f0ed3c 100644
16--- a/ffmpeg/tests/test_ffmpeg.py
17+++ b/ffmpeg/tests/test_ffmpeg.py
18@@ -746,7 +746,8 @@ def test_pipe():
19 def test__probe():
20 data = ffmpeg.probe(TEST_INPUT_FILE1)
21 assert set(data.keys()) == {'format', 'streams'}
22- assert data['format']['duration'] == '7.036000'
23+ assert data['format']['duration'][:4] == '7.03'
24+ assert len(data['format']['duration']) == 8
25
26
27 @pytest.mark.skipif(sys.version_info < (3, 3), reason='requires python3.3 or higher')