-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest-cov randomly fails with INTERNALERROR> coverage.misc.CoverageException: Can't combine line data with arc data
#479
Comments
I had something very similar with |
Hi @sodul, |
Ok. What I seem to understand from the error message is that the coverage information gets 'corrupted' Personally I do believe that there might be something wrong in pytest-cov that triggers the bug, the bug itself is very likely in coverage.py itself since coverage.py is the one reading/writing the data and it ends up not agreeing with itself. I'm not a coverage.py maintainer and I do not use pytest so I'm not able to help more than sharing my own experience with this error message. Good luck @jacek-jablonski |
Meanwhile, coverage.py people say (nedbat/coveragepy/issues/512)
|
To avoid a pytest-cov bug, see pytest-dev/pytest-cov#479
To avoid a pytest-cov bug, see pytest-dev/pytest-cov#479
To avoid a pytest-cov bug, see pytest-dev/pytest-cov#479
To avoid a pytest-cov bug, see pytest-dev/pytest-cov#479
Summary
Running pytest with pytest-cov plugin or coverage standalone randomly results in error:
Expected vs actual result
pytest-cov running without error
Reproducer
Minimal example: https://github.com/jacek-jablonski/coverage-test-error
Versions
Output of relevant packages
pip list
,python --version
,pytest --version
etc.coverage=5.5
pytest=6.2.4
pytest-cov=2.12.1
Config
Provided in a minimal example
Code
Provided in a minimal example
If you paste raw code make sure you quote it, eg:
The text was updated successfully, but these errors were encountered: