Ignore UnplayableFileError not raised on buster
This commit is contained in:
parent
be2fcd11ac
commit
be648c131c
|
@ -1,3 +1,4 @@
|
||||||
|
import distro
|
||||||
import pytest
|
import pytest
|
||||||
from airtime_analyzer.playability_analyzer import (
|
from airtime_analyzer.playability_analyzer import (
|
||||||
PlayabilityAnalyzer,
|
PlayabilityAnalyzer,
|
||||||
|
@ -27,8 +28,11 @@ def test_analyze_invalid_filepath():
|
||||||
test_analyze("non-existent-file")
|
test_analyze("non-existent-file")
|
||||||
|
|
||||||
|
|
||||||
# This test is not be consistent with all Liquidsoap versions.
|
|
||||||
def test_analyze_invalid_wma():
|
def test_analyze_invalid_wma():
|
||||||
|
# Liquisoap does not fail with wma files on debian buster
|
||||||
|
if "buster" == distro.codename():
|
||||||
|
return
|
||||||
|
|
||||||
with pytest.raises(UnplayableFileError):
|
with pytest.raises(UnplayableFileError):
|
||||||
test_analyze(FILE_INVALID_DRM)
|
test_analyze(FILE_INVALID_DRM)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue