File mark-network-tests.patch of Package python-librosa
---
setup.cfg | 2 ++
tests/test_multichannel.py | 1 +
tests/test_util.py | 3 +++
3 files changed, 6 insertions(+)
Index: librosa-0.11.0/setup.cfg
===================================================================
--- librosa-0.11.0.orig/setup.cfg
+++ librosa-0.11.0/setup.cfg
@@ -14,6 +14,8 @@ addopts = --mpl --mpl-baseline-path=tes
filterwarnings =
ignore::DeprecationWarning:audioread.*
ignore::DeprecationWarning:resampy.*
+markers =
+ network: tests requiring network connection
[flake8]
Index: librosa-0.11.0/tests/test_multichannel.py
===================================================================
--- librosa-0.11.0.orig/tests/test_multichannel.py
+++ librosa-0.11.0/tests/test_multichannel.py
@@ -918,6 +918,7 @@ def test_click_multi():
assert np.allclose(yout[..., 2000:2100], click)
+@pytest.mark.network
def test_nnls_multi(s_multi):
# Verify that a stereo melspectrogram can be reconstructed
Index: librosa-0.11.0/tests/test_util.py
===================================================================
--- librosa-0.11.0.orig/tests/test_util.py
+++ librosa-0.11.0/tests/test_util.py
@@ -1472,6 +1472,7 @@ def test_cite_released():
assert doi == librosa.cite(version=version)
+@pytest.mark.network
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_cite_badversion():
librosa.cite(version="-1.5")