CoverageSqliteData.filename gets mutated with suffix · Issue #708 · nedbat/coveragepy (original) (raw)

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).