Skip to content

Commit 88976b8

Browse files
gregoryfosterclaude
andcommitted
#83 chore: lock pytest 9.2.0, the first release with #14635's fix; floor it there
9.1.2 never shipped: PyPI went from 9.1.1 to 9.2.0 (2026-10-27T21:30Z), whose notes list pytest-dev/pytest#14635. The spec's !=9.1.0,!=9.1.1 exclusions become a >=9.2.0 floor, and the comment and the collection test's docstring stop naming an unreleased 9.1.2. test_pytest_collection.py: six orders green on 9.2.0. 9.2.0's breaking changes touch nothing here: no `pytest -c`, no positional indirect/ids/scope in 110 parametrize calls, and nothing reads pytest's exit code for a plugin import failure. No new deprecation fires under error::DeprecationWarning. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 6a4cc80 commit 88976b8

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎pyproject.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ dev = [
3838
"fakeredis>=2.20",
3939
# 9.1.0 and 9.1.1 lose a directory's conftest fixtures when the command line
4040
# interleaves it with a sibling (pytest-dev/pytest#14635, CannObserv/broker#73).
41-
# The fix is on 9.1.x, unreleased as of 2026-10-06: once 9.1.2 ships,
42-
# `uv lock --upgrade-package pytest` takes it with no edit here, and
43-
# tests/deploy/test_pytest_collection.py is what says whether it carries the fix.
44-
"pytest>=9.0.3,!=9.1.0,!=9.1.1,<10",
41+
# 9.2.0 is the first release with the fix (9.1.2 never shipped), so it is the
42+
# floor (#83). tests/deploy/test_pytest_collection.py is what says a later
43+
# pytest still carries it.
44+
"pytest>=9.2.0,<10",
4545
"pytest-asyncio>=1.3.0,<2",
4646
]
4747
# The gate's tools. .githooks/pre-commit and scripts/shellcheck.sh run them as

‎tests/deploy/test_pytest_collection.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
A command line that puts a ``tests/`` module between two ``tests/deploy/`` modules
77
re-collects ``tests`` and builds a second ``Dir deploy``, so every test under it
88
fails with ``fixture '...' not found``. That is pytest-dev/pytest#14635 (bisected
9-
to pytest 46478fad), fixed by pytest-dev/pytest#14645 and backported to 9.1.x
10-
unreleased as of 2026-10-06. ``pyproject.toml`` excludes the two releases; this
11-
pins the behaviour, so it is the check that a later pytest really carries the fix.
9+
to pytest 46478fad), fixed by pytest-dev/pytest#14645 and first released in 9.2.0
10+
(9.1.2 never shipped). ``pyproject.toml`` floors pytest there (#83); this pins the
11+
behaviour, so it is the check that a later pytest really carries the fix.
1212
1313
The tree mirrors this repo's: a package with a conftest, and a subpackage whose
1414
conftest holds the fixture. Its top-level package is not called ``tests`` because

‎uv.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)