Skip to content

Enable asyncio debug mode in tests #541

@llucax

Description

@llucax

What's needed?

Asyncio debug mode is not enabled by default by pytest or pytest-asyncio, but it provides some extra sanity checks that can help debug tests or detect more potential issues early.

Proposed solution

Add asyncio_debug = true to the config in pyproject.toml:

[tool.pytest.ini_options]
asyncio_debug = true

Use cases

No response

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:pytestAffects the configuration of pytestpart:templateAffects the cookiecutter template filestype:enhancementNew feature or enhancement visitble to users

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions