[TIP] error with combined coverage that includes pypy

Albert-Jan Roskam sjeik_appie at hotmail.com
Thu Apr 7 12:25:51 PDT 2016


Hi,

With coverage==3.7.1 I get an error when I try to create a combined coverage report for pypy:"No source for code: '/build/pypy-t8XUmF/pypy-2.4.0+dfsg/lib-python/2.7/_abcoll.py'".
This happens when I use the coverage plugin for nose, inside tox. I can provide more details if needed.

The full(er) error is below. I did not yet try if the error persists with a more recent version of coverage (I noticed that my .coveragerc file becomes invalid, e.g. parallel-mode no longer exists).

What does this error mean? That only _abcoll.pyc exists and not the corresponding .py?

coverage installed: alabaster==0.7.7,Babel==2.2.0,coverage==3.7.1,Cython==0.21.1,docutils==0.12,gocept.testing==1.10,Jinja2==2.8,MarkupSafe==0.23,nose==1.3.0,numpy==1.10.2,numpydoc==0.5,pandas==0.14.1,pluggy==0.3.1,py==1.4.31,Pygments==2.1.3,python-dateutil==2.5.2,pytz==2016.3,six==1.10.0,snowballstemmer==1.2.1,Sphinx==1.3.1,sphinx-rtd-theme==0.1.9,sphinxcontrib-exceltable==0.1,tox==2.0.1,versioneer==0.13,virtualenv==15.0.1,xlrd==0.9.4
coverage runtests: PYTHONHASHSEED='1227855618'
coverage runtests: commands[0] | coverage-2.7 combine
coverage runtests: commands[1] | coverage html --omit=.tox/*,myProject/unit_tests/* --fail-under=80 --title=myProject combined coverage report --directory=/home/albertjan/Documents/myProject/myProject/unit_tests/coverage-combined
No source for code: '/build/pypy-t8XUmF/pypy-2.4.0+dfsg/lib-python/2.7/_abcoll.py'
ERROR: InvocationError: '/home/albertjan/Documents/myProject/.tox/coverage/bin/coverage html --omit=.tox/*,myProject/unit_tests/* --fail-under=80 --title=myProject combined coverage report --directory=/home/albertjan/Documents/myProject/myProject/unit_tests/coverage-combined'

Thank you!

Albert-Jan
 		 	   		  


More information about the testing-in-python mailing list