Skip to content

Commit

Permalink
skip unittest for new numpy version 1.26.0 (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern authored Oct 10, 2023
1 parent 16c5953 commit 9ec9d64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elephant/test/test_spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import scipy.signal as spsig
from neo import AnalogSignal
from numpy.testing import assert_array_equal
from packaging import version

import elephant.spectral
from elephant.datasets import download_datasets, ELEPHANT_TMP_DIR
Expand Down Expand Up @@ -954,7 +955,7 @@ def test_multitaper_cohere_peak(self):
signal_freq*np.ones(len(peak_freqs)),
rtol=0.05)

@pytest.mark.skipif(np.__version__ in ['1.25.0', '1.25.1', '1.25.2'],
@pytest.mark.skipif(version.parse(np.__version__)>version.parse("1.25.0"),
reason="This test will fail with numpy version"
"1.25.0 - 1.25.2, see issue #24000"
"https://github.com/numpy/numpy/issues/24000 ")
Expand Down

0 comments on commit 9ec9d64

Please sign in to comment.