From 97f682c9f636e55e6c51fb40c9f8379b480245e9 Mon Sep 17 00:00:00 2001 From: Cooper Cox Date: Tue, 3 Nov 2026 11:07:45 +1030 Subject: [PATCH] Cap pytest below 9.2 for pytest-forked compatibility --- HISTORY.rst | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index abd133c0..aa493f43 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,6 +17,7 @@ Release History * Fix `azure-cli-diff-tool`'s sdist missing `HISTORY.rst`, which broke building a wheel from it. * Fix `scripts/ci/extract_version.sh` producing an empty version. * Set `Description-Content-Type` and stop reading the long description through `codecs.open`, which wrote `\r\r\n` line endings on Windows. +* `azdev test`: cap `pytest` below 9.2. On Linux and macOS `azdev test` runs pytest with `--forked`, and pytest-forked 1.7.5 can't serialise pytest 9.2 reports, so every test failed with "EXITED with status 3". The cap stays until pytest-forked supports pytest 9.2 (pytest-dev/pytest-forked#113). 0.2.13 ++++++ diff --git a/pyproject.toml b/pyproject.toml index c498390b..85ba6d3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dependencies = [ "pylint>=4,<5", "pytest-xdist", # depends on pytest-forked "pytest-forked", - "pytest>=5.0.0", + "pytest>=5.0.0,<9.2", # azdev test uses --forked; pytest-forked 1.7.5 can't serialise pytest 9.2 reports (pytest-dev/pytest-forked#113) "pyyaml", "requests", "sphinx==1.6.7",