diff --git a/pyproject.toml b/pyproject.toml index 847a55fece..50e1171fcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -187,7 +187,9 @@ tests = [ "mypy >=1.14.1", "pwdlib[argon2] >=0.2.1", "pyjwt >=2.9.0", - "pytest >=9.0.0", + # Remove this cap after requiring a pytest-xdist release with the fix for + # pytest >=9.2 loadgroup compatibility: https://github.com/pytest-dev/pytest-xdist/pull/1388 + "pytest >=9.0.0,<9.2", "pytest-codspeed >=4.3.0", "pyyaml >=5.3.1,<7.0.0", "sqlmodel >=0.0.31", diff --git a/uv.lock b/uv.lock index 42c8dfa312..0c4481ef90 100644 --- a/uv.lock +++ b/uv.lock @@ -1113,7 +1113,7 @@ dev = [ { name = "pydantic-ai", specifier = ">=0.4.10" }, { name = "pygithub", specifier = ">=2.8.1" }, { name = "pyjwt", specifier = ">=2.9.0" }, - { name = "pytest", specifier = ">=9.0.0" }, + { name = "pytest", specifier = ">=9.0.0,<9.2" }, { name = "pytest-codspeed", specifier = ">=4.3.0" }, { name = "pytest-cov", specifier = ">=4.0.0" }, { name = "pytest-sugar", specifier = ">=1.0.0" }, @@ -1178,7 +1178,7 @@ tests = [ { name = "opentelemetry-sdk", specifier = ">=1.44.0" }, { name = "pwdlib", extras = ["argon2"], specifier = ">=0.2.1" }, { name = "pyjwt", specifier = ">=2.9.0" }, - { name = "pytest", specifier = ">=9.0.0" }, + { name = "pytest", specifier = ">=9.0.0,<9.2" }, { name = "pytest-codspeed", specifier = ">=4.3.0" }, { name = "pytest-cov", specifier = ">=4.0.0" }, { name = "pytest-sugar", specifier = ">=1.0.0" },