From e290c5a8c64eaa735cbab718223c014b677c86d0 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 13 Aug 2024 16:34:42 -0500 Subject: [PATCH 1/3] unpin pytest --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aef5453e..e577f369 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,7 +108,7 @@ test = [ 'pandas', 'pymatreader', 'pytest-cov', - 'pytest<8.0.0', + 'pytest', 'statsmodels', ] From 7742d77750530475e04a453dbf2674d6d518fa9c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:36:54 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e577f369..8f1c3e98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,8 +107,8 @@ test = [ 'mne-connectivity[gui]', 'pandas', 'pymatreader', - 'pytest-cov', 'pytest', + 'pytest-cov', 'statsmodels', ] From ab3dea9c2670300f9374e81055626067210034a9 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 13 Aug 2024 16:43:24 -0500 Subject: [PATCH 3/3] fix for pytest 8 --- mne_connectivity/tests/test_envelope.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)