Skip to content

Conversation

@s-t-e-v-e-n-k
Copy link
Contributor

Why?

Applying marks to a pytest fixture has never actually worked, it has just been a no-op. Starting with pytest 9, it now raises an error to fix code that does so. Remove the mark.

What?

Removing a mark that had no effect.

See Also

https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function

Applying marks to a pytest fixture has never actually worked, it has
just been a no-op. Starting with pytest 9, it now raises an error to
fix code that does so. Remove the mark.
@s-t-e-v-e-n-k s-t-e-v-e-n-k requested a review from a team as a code owner December 16, 2025 03:49
@s-t-e-v-e-n-k s-t-e-v-e-n-k requested review from mbroshi-stripe and removed request for a team December 16, 2025 03:49
Copy link
Contributor

@mbroshi-stripe mbroshi-stripe left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for committing this fix!

@mbroshi-stripe mbroshi-stripe merged commit 10dd396 into stripe:master Dec 16, 2025
16 checks passed
@s-t-e-v-e-n-k s-t-e-v-e-n-k deleted the do-not-mark-fixture branch December 17, 2025 00:58
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.

2 participants