Skip to content

Slate yield_fixture decorator for removal in pytest 10#14755

Open
seifertm wants to merge 1 commit into
pytest-dev:mainfrom
seifertm:yield_fixture_removal
Open

Slate yield_fixture decorator for removal in pytest 10#14755
seifertm wants to merge 1 commit into
pytest-dev:mainfrom
seifertm:yield_fixture_removal

Conversation

@seifertm

@seifertm seifertm commented Jul 22, 2026

Copy link
Copy Markdown

Schedules the deprecated yield_fixture decorator for removal in pytest 10.

@seifertm
seifertm force-pushed the yield_fixture_removal branch from aebb7fb to f7c3caf Compare July 22, 2026 07:46
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jul 22, 2026
@seifertm
seifertm force-pushed the yield_fixture_removal branch 2 times, most recently from 3558bad to cd388a7 Compare July 22, 2026 07:49
@seifertm
seifertm marked this pull request as ready for review July 22, 2026 07:49
@seifertm
seifertm force-pushed the yield_fixture_removal branch from cd388a7 to 8b32b8e Compare July 22, 2026 08:32

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also mention in

The ``yield_fixture`` function/decorator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. deprecated:: 6.2
``pytest.yield_fixture`` is a deprecated alias for :func:`pytest.fixture`.
It has been so for a very long time, so it can be searched/replaced safely.
that the decorator is slated for removal in pytest 10.0

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.

4 participants