Skip to content

Disable pytest-beartype-tests in nested collection runs to fix Python 3.14#3132

Merged
adamtheturtle merged 1 commit intomainfrom
adamtheturtle/py314-collect-fail
Apr 26, 2026
Merged

Disable pytest-beartype-tests in nested collection runs to fix Python 3.14#3132
adamtheturtle merged 1 commit intomainfrom
adamtheturtle/py314-collect-fail

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

@adamtheturtle adamtheturtle commented Apr 26, 2026

Summary

Test plan

  • uv run --python=3.14 --all-extras pytest ci/test_custom_linters.py passes (both linter tests, ~2.5 min)
  • CI passes on Python 3.13 and 3.14

🤖 Generated with Claude Code


Note

Low Risk
Low risk: only adjusts CI linter test invocation flags to work around an upstream pytest plugin crash on Python 3.14, without changing production/runtime logic.

Overview
Updates ci/test_custom_linters.py to disable the pytest-beartype-tests plugin (-p no:pytest_beartype_tests) in both nested pytest.main(--collect-only) runs.

This prevents Python 3.14 nested test collection crashes caused by an upstream beartype/pytest plugin bug, while keeping the linter’s collection-only behavior unchanged.

Reviewed by Cursor Bugbot for commit ba140bb. Bugbot is set up for automated code reviews on this repo. Configure here.

Avoids beartype/beartype#637 which prevented
ci/test_custom_linters.py from passing on Python 3.14.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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