Skip to content

Validate asyncio_mode in pytest_configure - #1637

Closed
seragAhmed wants to merge 1 commit into
pytest-dev:mainfrom
seragAhmed:fix/validate-asyncio-mode-in-configure
Closed

seragAhmed wants to merge 1 commit into
pytest-dev:mainfrom
seragAhmed:fix/validate-asyncio-mode-in-configure

Conversation

@seragAhmed

Copy link
Copy Markdown

Fixes #1633.

Calls _get_asyncio_mode(config) in pytest_configure so an invalid asyncio_mode raises a pytest.UsageError early during configuration, even when quiet mode (-q) suppresses pytest_report_header.

Fixes pytest-dev#1633. Validates asyncio_mode during pytest_configure so invalid values consistently raise a usage error even when quiet mode (-q) suppresses report headers.
@tjkuson

tjkuson commented Nov 24, 2026

Copy link
Copy Markdown
Member

This account appears to be filing automated PRs. Closing per the AI policy.

@tjkuson tjkuson closed this Nov 24, 2026
@RonnyPfannschmidt

Copy link
Copy Markdown
Member

banned from the org

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid asyncio_mode is only validated when the report header is printed

4 participants