CoverageException: Can't combine line data with arc data when updating to repository tip · Issue #399 · nedbat/coveragepy (original) (raw)

Originally reported by Florian Bruhin (Bitbucket: The-Compiler, GitHub: The-Compiler)


After updating from 3.7.1 to the repository tip, I get this when running my tests:

[...]
  File "/home/florian/proj/qutebrowser/git/.tox/py34/lib/python3.4/site-packages/pytest_cov/plugin.py", line 156, in pytest_sessionfinish
    self.cov_controller.finish()
  File "/home/florian/proj/qutebrowser/git/.tox/py34/lib/python3.4/site-packages/pytest_cov/engine.py", line 123, in finish
    self.cov.combine()
  File "/home/florian/proj/qutebrowser/git/.tox/py34/lib/python3.4/site-packages/coverage/control.py", line 781, in combine
    self.data_files.combine_parallel_data(self.data, aliases=aliases, data_paths=data_paths)
  File "/home/florian/proj/qutebrowser/git/.tox/py34/lib/python3.4/site-packages/coverage/data.py", line 649, in combine_parallel_data
    data.update(new_data, aliases=aliases)
  File "/home/florian/proj/qutebrowser/git/.tox/py34/lib/python3.4/site-packages/coverage/data.py", line 434, in update
    raise CoverageException("Can't combine line data with arc data")
coverage.misc.CoverageException: Can't combine line data with arc data

It goes away when deleting .coverage.

I can't reproduce it with a minimal example, but here is how you should be able to reproduce it:

diff --git a/tox.ini b/tox.ini index d78d979 (bb)..e4777ea 100644 (bb) --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ deps = pytest-html==1.5.1 hypothesis==1.10.1 hypothesis-pytest==0.17.0

I attached .coverage before and after running 4.0 (the latter was named .coverage.ws042.24666.991896 - I guess it gets renamed later and it crashed before that?)