Skip to content

fix: cap pytest below 9.2 until pytest-alembic supports it - #86

Merged
lesnik512 merged 1 commit into
mainfrom
fix/cap-pytest-below-9.2
Oct 28, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/cap-pytest-below-9.2

Conversation

@lesnik512

Copy link
Copy Markdown
Member

pytest 9.2.0 breaks test collection with pytest-alembic 0.13.1 whenever --test-alembic is passed: AttributeError: 'TestCollector' object has no attribute '_nodeid' (schireson/pytest-alembic#292). The fix is in schireson/pytest-alembic#293 but hasn't been released yet.

The lockfile still pins pytest 9.1.1, but just install runs uv lock --upgrade, which would move it to 9.2.0. This caps pytest at <9.2. The cap can come off once a pytest-alembic release with the fix is out.

Tested in docker: just test-migrations and just test pass. With the cap, uv lock --upgrade-package pytest stays on 9.1.1; without it, it moves to 9.2.0.

@lesnik512
lesnik512 merged commit 5b7fc73 into main Oct 28, 2026
3 checks passed
@lesnik512
lesnik512 deleted the fix/cap-pytest-below-9.2 branch October 28, 2026 13:38
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.

1 participant