Skip to content

coverage.exceptions.DataError: Can't combine statement coverage data with branch data #1986

Closed
@ThomasWaldmann

Description

@ThomasWaldmann

Describe the bug
I just transferred .coveragerc settings to pyproject.toml and CI broke with that error.

borgbackup/borg#8923

The only other change I made is that I installed coverage[toml] to make sure it also works on Python 3.10.

To Reproduce

  1. What version of Python are you using? 3.11
  2. What version of coverage.py shows the problem? 7.9.1

Expected behavior
It shouldn't matter whether settings are in .coveragerc or pyproject.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions