Skip to content

Remove PytestRemovedIn9Warning#14299

Open
bluetech wants to merge 1 commit intopytest-dev:mainfrom
bluetech:rm-rm-in-9
Open

Remove PytestRemovedIn9Warning#14299
bluetech wants to merge 1 commit intopytest-dev:mainfrom
bluetech:rm-rm-in-9

Conversation

@bluetech
Copy link
Member

Per our deprecation policy.

Fix #13893.

@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Mar 17, 2026
@bluetech bluetech force-pushed the rm-rm-in-9 branch 2 times, most recently from 78db2a6 to d53a8e2 Compare March 18, 2026 12:44
@bluetech
Copy link
Member Author

The doc build fails. I tried to update sphinx but still fails. Can't reproduce locally. Not sure if it's due to this PR. I'll submit the sphinx upgrade separately to see.

WARNING: error while formatting arguments for pytest.PytestUnraisableExceptionWarning: list index out of range [autodoc]

Per our deprecation policy.

Fix pytest-dev#13893.
@bluetech
Copy link
Member Author

OK, so it's really something in this PR that's causing this sphinx error, but the only change is "9" -> "10", pretty strange. I'll look into it. Maybe switching the docs job/RTD to 3.14 will help.

Copy link

@themavik themavik left a comment

Choose a reason for hiding this comment

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

Removes PytestRemovedIn9Warning and bumps the deprecation cycle to RemovedIn10. Clean removal with doc and test updates.

Done well: Consistent updates across warning_types, init, warnings.py, and tests. The commented-out filterwarnings("error", ...) in warnings.py with the "To be enabled in pytest 10.0.0" note is clear.

Suggestion: In warnings.py, the PytestRemovedIn10Warning filter is now commented out. Consider adding a brief comment explaining why it stays commented until 10.0 (e.g. "RemovedIn9 items were removed; RemovedIn10 enforcement starts in 10.0") so future maintainers don't wonder.

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

Labels

skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Final removal of pytest 9 removed features

3 participants