Skip to content

Support coverage plugins with sys.monitoring #1790

@scoder

Description

@scoder

Is your feature request related to a problem? Please describe.

Running coverage.py on Cython code with sys.monitoring in Py3.13 disables the Cython coverage plugin:
https://github.com/nedbat/coveragepy/blob/7f336228d78d8338239d4da4d4de3ade0abd0901/coverage/control.py#L565-L568

Describe the solution you'd like
Plugins should work the same with the old tracing and new monitoring infrastructure.

Additional context
I'm currently working on getting Cython to use the monitoring C-API, but found that coverage.py doesn't support both together as it stands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions