diff --git a/mne_connectivity/tests/test_envelope.py b/mne_connectivity/tests/test_envelope.py index 56544fc5..e55d2987 100644 --- a/mne_connectivity/tests/test_envelope.py +++ b/mne_connectivity/tests/test_envelope.py @@ -204,4 +204,5 @@ def test_symmetric_orth(ndim, generator): Z_bad = Z.copy() Z_bad[0] = Z[1] + Z[2] with pytest.warns(RuntimeWarning, match="rank deficient"): - symmetric_orth(Z_bad) + with pytest.warns(RuntimeWarning, match="did not converge"): + symmetric_orth(Z_bad) diff --git a/pyproject.toml b/pyproject.toml index aef5453e..8f1c3e98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,8 +107,8 @@ test = [ 'mne-connectivity[gui]', 'pandas', 'pymatreader', + 'pytest', 'pytest-cov', - 'pytest<8.0.0', 'statsmodels', ]