Skip to content

Cancel autouse fixture shadowed by non-autouse override - #15041

Draft
SemTiOne wants to merge 1 commit into
pytest-dev:mainfrom
SemTiOne:fix/3225-autouse-override-cancel
Draft

SemTiOne wants to merge 1 commit into
pytest-dev:mainfrom
SemTiOne:fix/3225-autouse-override-cancel

Conversation

@SemTiOne

Copy link
Copy Markdown
Contributor

Autouse names now resolve to the fixture that would execute. A non-autouse override cancels the automatic setup; explicit requests still run it.

Closes #3225.

  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.
  • Add text like closes #XYZW to the PR description and/or commits (where XYZW is the issue number). See the github docs for more information.
  • If AI agents were used, they are credited in Co-authored-by commit trailers.
  • Create a new changelog file in the changelog directory, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.
  • Add yourself to AUTHORS in alphabetical order.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A fixture with autouse set to False will always be used if it overrides a fixture with autouse set to True

1 participant