diff --git a/pyproject.toml b/pyproject.toml index ab83b99f8..8252d0a67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ full = [ ] # Dependencies for running the test infrastructure -test = ["mne_bids[full]", "pytest", "pytest-cov", "pytest-sugar", "ruff"] +test = ["mne_bids[full]", "pytest < 8", "pytest-cov", "pytest-sugar", "ruff"] # Dependencies for building the documentation doc = [