Skip to content

Apply warning filters to pytest_configure#14760

Merged
Zac-HD merged 4 commits into
pytest-dev:mainfrom
tjkuson:fix-10128
Jul 22, 2026
Merged

Apply warning filters to pytest_configure#14760
Zac-HD merged 4 commits into
pytest-dev:mainfrom
tjkuson:fix-10128

Conversation

@tjkuson

@tjkuson tjkuson commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Apply warning filters to warnings emitted by pytest_configure hooks.

This affects users of pytest-asyncio as the plugin implements a pytest_configure hook that issues a warning. This also means we have to update the plugin integration test as now that warning is converted into an error (the fix is to specify a default fixture loop scope).

Closes #10128

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jul 22, 2026
@tjkuson
tjkuson force-pushed the fix-10128 branch 3 times, most recently from 92cff05 to 75e81fd Compare July 22, 2026 11:56
Comment thread src/_pytest/config/__init__.py
Comment thread testing/plugins_integration/pytest.ini
@tjkuson
tjkuson marked this pull request as ready for review July 22, 2026 12:31
@Zac-HD
Zac-HD enabled auto-merge (squash) July 22, 2026 12:40
@Zac-HD
Zac-HD merged commit b4e8466 into pytest-dev:main Jul 22, 2026
36 checks passed
@tjkuson
tjkuson deleted the fix-10128 branch July 22, 2026 22:40
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.

Possible missing warning filters in pytest_configure

3 participants