1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
|
Index: python-librosa/tests/test_util.py
===================================================================
--- python-librosa.orig/tests/test_util.py
+++ python-librosa/tests/test_util.py
@@ -1238,6 +1238,11 @@ def test_stack_consistent(x, axis):
if axis != 0:
assert xs.flags["C_CONTIGUOUS"]
+"""
+========================================
+this test cannot work in the context of debian packaging.
+It raises always a PermissionError
+========================================
@pytest.mark.network
@pytest.mark.parametrize(
@@ -1263,13 +1268,19 @@ def test_example(key, hq):
fn = librosa.example(key, hq=hq)
assert os.path.exists(fn)
-
+"""
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_example_fail():
librosa.example("no such track")
+"""
+========================================
+this test cannot work in the context of debian packaging.
+It raises always a PermissionError
+========================================
+
@pytest.mark.network
@pytest.mark.parametrize(
"key",
@@ -1292,7 +1303,7 @@ def test_example_fail():
def test_example_info(key):
librosa.util.example_info(key)
-
+"""
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_example_info_fail():
@@ -1465,13 +1476,18 @@ def test_phasor(dtype, angles, mag):
assert z2.dtype == librosa.util.dtype_r2c(dtype)
+"""
+========================================
+those three tests cannot work in the context of debian packaging.
+They raise always a PermissionError
+========================================
+
@pytest.mark.network
def test_cite_released():
version = "0.10.1"
doi = "https://doi.org/10.5281/zenodo.8252662"
assert doi == librosa.cite(version=version)
-
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_cite_badversion():
librosa.cite(version="-1.5")
@@ -1481,3 +1497,4 @@ def test_cite_badversion():
@pytest.mark.xfail(raises=librosa.ParameterError)
def test_cite_unreleased():
librosa.cite("0.10.0.dev0")
+"""
Index: python-librosa/tests/test_core.py
===================================================================
--- python-librosa.orig/tests/test_core.py
+++ python-librosa/tests/test_core.py
@@ -148,6 +148,10 @@ def resample_mono(resample_audio):
return (y, sr)
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize("sr_out", [8000, 22050])
@pytest.mark.parametrize(
"res_type",
@@ -193,8 +197,12 @@ def test_resample_mono(resample_mono, sr
# Check that we're within one sample of the target length
target_length = y.shape[-1] * sr_out // sr_in
assert np.abs(y2.shape[-1] - target_length) <= 1
+"""
-
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize("sr_out", [8000, 22050])
@pytest.mark.parametrize(
"res_type",
@@ -237,8 +245,12 @@ def test_resample_stereo(resample_audio,
# Check that we're within one sample of target_length = y.shape[-1] * sr_out // sr_in
target_length = y.shape[-1] * sr_out // sr_in
assert np.abs(y2.shape[-1] - target_length) <= 1
+"""
-
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize(
"res_type",
[
@@ -273,6 +285,7 @@ def test_resample_scale(resample_mono, r
# If it's a no-op, make sure the signal is untouched
assert np.allclose(n_orig, n_res, atol=1e-2), (n_orig, n_res)
+"""
@pytest.mark.parametrize("sr_in, sr_out", [(100, 100.1), (100.1, 100)])
@pytest.mark.xfail(raises=librosa.ParameterError)
Index: python-librosa/tests/test_multichannel.py
===================================================================
--- python-librosa.orig/tests/test_multichannel.py
+++ python-librosa/tests/test_multichannel.py
@@ -1023,6 +1023,10 @@ def test_trim_multichannel(y_multi):
assert ival[1] == min(ival0[1], ival1[1])
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize(
"res_type", ("scipy", "polyphase", "sinc_fastest", "kaiser_fast", "soxr_qq")
)
@@ -1037,8 +1041,12 @@ def test_resample_multichannel(y_multi,
assert np.allclose(y_res[0], y0_res)
assert np.allclose(y_res[1], y1_res)
assert y_res[0].shape == y0_res.shape
+"""
-
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize(
"res_type", ("scipy", "polyphase", "sinc_fastest", "kaiser_fast", "soxr_qq")
)
@@ -1046,8 +1054,12 @@ def test_resample_multichannel(y_multi,
def test_resample_highdim(x, res_type):
# Just run these to verify that it doesn't crash with ndim>2
y = librosa.resample(x, orig_sr=22050, target_sr=11025, res_type=res_type)
+"""
-
+"""
+========================================
+this test cannot work in the context of Salsa-CI.
+========================================
@pytest.mark.parametrize(
"res_type", ("scipy", "polyphase", "sinc_fastest", "kaiser_fast", "soxr_qq")
)
@@ -1063,7 +1075,7 @@ def test_resample_highdim_axis(x, axis,
# Verify that the target axis is the correct shape
assert y.shape[axis] == 11025
assert y.ndim == x.ndim
-
+"""
@pytest.mark.parametrize("dynamic", [False, True])
# Not worried about this warning here
|