Skip to content

Crash when collecting reports #1015

@ericvergnaud

Description

@ericvergnaud

pytest-cov crashes when pytest-asyncio is installed and used (i.e. some tests are `async).

The crash is as follows:

DataError: Can't combine statement coverage data with branch data
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
  config.hook.pytest_runtestloop(session=session)

From the reference, it seems the culprit is pytest-asyncio using an old style event loop ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needsinfoRequires additional information from the issue author

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions