Skip to content
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

CoverageException: Can't add arcs to existing line data #476

Closed
nedbat opened this issue Feb 13, 2016 · 3 comments
Closed

CoverageException: Can't add arcs to existing line data #476

nedbat opened this issue Feb 13, 2016 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Feb 13, 2016

Originally reported by Anonymous


While testing with:
coverage==4.0.3
django-nose==1.4.3

With arguments:
'--cover-branches',
'--with-coverage',
'--cover-package=personalfinance.services',

I get:

File "pythonenv\lib\site-packages\coverage\data.py", line 363, in add_arcs
raise CoverageException("Can't add arcs to existing line data")
coverage.misc.CoverageException: Can't add arcs to existing line data


@nedbat
Copy link
Owner Author

nedbat commented Feb 13, 2016

Please be sure to clean existing data files before running coverage. Can you provide instructions on reproducing the problem?

@nedbat
Copy link
Owner Author

nedbat commented Jul 24, 2016

If you can provide more details, feel free to re-open this issue.

@nedbat
Copy link
Owner Author

nedbat commented Nov 15, 2016

Original comment by bouteillebleu (Bitbucket: bouteillebleu, GitHub: bouteillebleu)


Not the original raiser of the issue, but finding this was useful - I ran into the same error (having first done a run without --cover-branches), but putting --cover-erase into the command line as well made it run correctly. Thank you Ned for the note about cleaning existing data files before running coverage again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant