Skip to content

Support coverage plugins with sys.monitoring #1790

Open
@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:

# Early warning if we aren't going to be able to support plugins.
if self._plugins.file_tracers and not self._collector.supports_plugins:
self._warn(
"Plugin file tracers ({}) aren't supported with {}".format(

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions