Skip to content

chore(deps-dev): allow pytest 9.x (bump cap <9 -> <10) - #34

Merged
AdrianLlopart merged 1 commit into
masterfrom
chore/pytest-9
Aug 1, 2026
Merged

chore(deps-dev): allow pytest 9.x (bump cap <9 -> <10)#34
AdrianLlopart merged 1 commit into
masterfrom
chore/pytest-9

Conversation

@AdrianLlopart

Copy link
Copy Markdown
Contributor

What changed

Widen the dev dependency-group pytest range from >=8,<9 to >=8,<10 and re-lock. uv.lock moves pytest 8.4.2 -> 9.1.1; no other package moves. The reason comment is rewritten to record why the old cap existed and why it can go.

Why

The <9 cap guarded against a real pytest 9.0.3 collection regression: modules using pytest.importorskip / pytest.skip(allow_module_level=True) at module level emitted ERROR: found no collectors and conflated every SKIPPED entry under the first module, silently hiding skip reasons across tests/sim/. pytest 9.1.1 fixes it.

This supersedes the pytest half of dependabot PRs #29 and #33 (both closed). Both grouped a no-op transformers widening (<5.14.0 -> <5.15.0) with the pytest bump — lerobot 0.6.0 caps transformers<5.6.0,>=5.4.0 on its transformers-dep extra, so the resolver stays on 5.5.x regardless — and both left the openral_cli.install._GROUPS mirror stale (failing test_install_command) and shipped no uv.lock. This PR carries only the part that does something.

How tested

Full tests/unit suite locally under pytest 9.1.1:

4004 passed, 49 skipped, 4 warnings in 143.73s

Skip reasons render per-module and distinct — including tests/unit/test_sim_collection.py, the guard written for the original regression — confirming the 9.0.3 conflation behaviour is gone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CfTEV5GayAr2bWawR6APgR

What changed: widen the dev-group pytest range from >=8,<9 to >=8,<10 and
re-lock (pytest 8.4.2 -> 9.1.1; no other package moves). The reason comment
now records why the old cap existed and why it can go.

Why: the <9 cap guarded against the pytest 9.0.3 collection regression
(module-level importorskip / skip(allow_module_level=True) conflated SKIPPED
entries under the first module, hiding skip reasons in tests/sim/). pytest
9.1.1 fixes it. Supersedes the pytest half of dependabot PRs #29 and #33,
both of which also carried a no-op transformers widening (lerobot 0.6.0's
transformers-dep extra caps transformers at <5.6.0, so the lock stays at
5.5.4 either way), left the openral_cli.install._GROUPS mirror stale
(failing test_install_command), and did not update uv.lock.

How tested: full tests/unit suite run locally under pytest 9.1.1 —
4004 passed, 49 skipped in 143s. Skip reasons render per-module and
distinct (including tests/unit/test_sim_collection.py, the guard for the
original regression), confirming the 9.0.3 conflation behaviour is gone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Adrian Llopart <adrianllopart@gmail.com>
@AdrianLlopart
AdrianLlopart merged commit 81a1bb6 into master Aug 1, 2026
3 checks passed
@AdrianLlopart
AdrianLlopart deleted the chore/pytest-9 branch August 1, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants