mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-27 08:22:25 +01:00
78fb6cf...df129c7
- Remove `py3-future` dependency
- Run tests
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/18017
28 lines
995 B
Diff
28 lines
995 B
Diff
Patch-Source: https://github.com/kkroening/ffmpeg-python/pull/848
|
|
---
|
|
From eeaa83398ba1d4e5b470196f7d4c7ca4ba9e8ddf Mon Sep 17 00:00:00 2001
|
|
From: Emily <hello@emily.moe>
|
|
Date: Sun, 4 Aug 2024 00:32:50 +0100
|
|
Subject: [PATCH] Fix `test__probe` on FFmpeg 7
|
|
|
|
We now get the (more precise?) result 7.035646, so make the check
|
|
less exact.
|
|
---
|
|
ffmpeg/tests/test_ffmpeg.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py
|
|
index 8dbc271a..c3f0ed3c 100644
|
|
--- a/ffmpeg/tests/test_ffmpeg.py
|
|
+++ b/ffmpeg/tests/test_ffmpeg.py
|
|
@@ -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')
|