| 1 | Patch-Source: https://github.com/kkroening/ffmpeg-python/pull/848
|
| 2 | ---
|
| 3 | From eeaa83398ba1d4e5b470196f7d4c7ca4ba9e8ddf Mon Sep 17 00:00:00 2001
|
| 4 | From: Emily <[email protected]>
|
| 5 | Date: Sun, 4 Aug 2024 00:32:50 +0100
|
| 6 | Subject: [PATCH] Fix `test__probe` on FFmpeg 7
|
| 7 |
|
| 8 | We now get the (more precise?) result 7.035646, so make the check
|
| 9 | less exact.
|
| 10 | ---
|
| 11 | ffmpeg/tests/test_ffmpeg.py | 3 ++-
|
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-)
|
| 13 |
|
| 14 | diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py
|
| 15 | index 8dbc271a..c3f0ed3c 100644
|
| 16 | |
| 17 | |
| 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')
|