From a5de55fe5a92abd9200848c8e46adf6dc3060c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 31 Oct 2026 12:08:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Pin=20pytest=20below=209.2=20for?= =?UTF-8?q?=20pytest-xdist=20compatibility=20(#16642)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 4 +++- uv.lock | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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" },