Skip to content

Schedule deprecated legacy hook marks for removal in pytest 10#14335

Merged
bluetech merged 1 commit intopytest-dev:mainfrom
bluetech:sched-rm-legacy-hook-marks
Mar 31, 2026
Merged

Schedule deprecated legacy hook marks for removal in pytest 10#14335
bluetech merged 1 commit intopytest-dev:mainfrom
bluetech:sched-rm-legacy-hook-marks

Conversation

@bluetech
Copy link
Copy Markdown
Member

By the time pytest 10 is released, this will have been deprecated for more than 5 years (0fdacb6), and the alternative syntax available for over 10 years
(d2a5c7f), which seems like enough time.

Removal will simplify PytestPluginManager and leave us with one way for setting hookspec/hookimpl options (the plan after removal is to just treat the old markers as normal markers, not hard-error on them).

@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Mar 28, 2026
Copy link
Copy Markdown
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

Might want to add a changelog as this one is now sheduled

By the time pytest 10 is released, this will have been deprecated for
more than 5 years (0fdacb6), and the
alternative syntax available for over 10 years
(d2a5c7f), which seems like enough
time.

Removal will simplify PytestPluginManager and leave us with one way for
setting hookspec/hookimpl options (the plan after removal is to just
treat the old markers as normal markers, not hard-error on them).
@bluetech bluetech force-pushed the sched-rm-legacy-hook-marks branch from 3de823b to bf9977f Compare March 31, 2026 13:41
@bluetech bluetech removed the skip news used on prs to opt out of the changelog requirement label Mar 31, 2026
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Mar 31, 2026
@bluetech bluetech merged commit ada80d5 into pytest-dev:main Mar 31, 2026
33 checks passed
@bluetech bluetech deleted the sched-rm-legacy-hook-marks branch March 31, 2026 14:00
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.

3 participants