python-librosa/mark-network-tests.patch

38 lines
991 B
Diff
Raw Normal View History

---
setup.cfg | 2 ++
tests/test_multichannel.py | 1 +
tests/test_util.py | 1 +
3 files changed, 4 insertions(+)
--- a/setup.cfg
+++ b/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]
count = True
--- a/tests/test_multichannel.py
+++ b/tests/test_multichannel.py
@@ -914,6 +914,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
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -1396,6 +1396,7 @@ def test_cite_badversion():
librosa.cite(version="-1.5")
+@pytest.mark.network
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_cite_unreleased():
librosa.cite("0.10.0.dev0")