fixtures: deprecate calling request.getfixturevalue() during teardown by bluetech · Pull Request #14295 · pytest-dev/pytest

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bluetech

Copy link

Member

on a fixture that hasn't already been requested.

Fix #12882.

The first commit is needed for the $subject change.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided

(automation) changelog entry is part of PR

label

Mar 16, 2026

themavik

This comment was marked as spam.

@bluetech bluetech merged commit 12558b5 into pytest-dev:main

Mar 20, 2026

32 checks passed

@bluetech bluetech deleted the deprecate-getfixturevalue-teardown branch

March 20, 2026 11:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@RonnyPfannschmidt RonnyPfannschmidt RonnyPfannschmidt approved these changes

@nicoddemus nicoddemus nicoddemus approved these changes

+1 more reviewer

@themavik themavik themavik left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

bot:chronographer:provided

(automation) changelog entry is part of PR

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Confusing AssertionError when using request.getfixturevalue with new fixture during teardown

4 participants

@bluetech @RonnyPfannschmidt @nicoddemus @themavik