Skip to content

CoverageSqliteData.filename gets mutated with suffix #708

Closed
@blueyed

Description

@blueyed

While CoverageJsonData.filename will be kept as the initial basename, CoverageSqliteData.filename gets mutated with the suffix appended.

This is relevant for when using combine() on an already used Coverage object, where the suffix is included in the glob pattern then already when looking for files to combine.

This appears to be (one of) the reason(s) for pytest-cov to have a separate Coverage object for this (https://github.com/pytest-dev/pytest-cov/blob/7205428bfb9ab9f8dbcaeefe23ce5fe426bb06b9/src/pytest_cov/engine.py#L152-L155).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions