From be648c131cc92c1c10ee504dfba227266322cdee Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 1 Sep 2021 21:34:00 +0200 Subject: [PATCH] Ignore UnplayableFileError not raised on buster --- .../airtime_analyzer/tests/playability_analyzer_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python_apps/airtime_analyzer/tests/playability_analyzer_test.py b/python_apps/airtime_analyzer/tests/playability_analyzer_test.py index 05bb6f03e..f498987d6 100644 --- a/python_apps/airtime_analyzer/tests/playability_analyzer_test.py +++ b/python_apps/airtime_analyzer/tests/playability_analyzer_test.py @@ -1,3 +1,4 @@ +import distro import pytest from airtime_analyzer.playability_analyzer import ( PlayabilityAnalyzer, @@ -27,8 +28,11 @@ def test_analyze_invalid_filepath(): test_analyze("non-existent-file") -# This test is not be consistent with all Liquidsoap versions. def test_analyze_invalid_wma(): + # Liquisoap does not fail with wma files on debian buster + if "buster" == distro.codename(): + return + with pytest.raises(UnplayableFileError): test_analyze(FILE_INVALID_DRM)