1. Ned Batchelder
  2. coverage.py
Issue #154 invalid

No source for code for file that exists

Anonymous created an issue

I think this is a separate issue from #98, in that the source file exists in my case.

I'm using coverage 3.5.1 and nose 1.1.2 in a python2.6 virtual environment.

I'm kicking off the tests with coverage with the command {{{ nosetests --cover-erase --cover-inclusive --with-coverage --cover-package=my_project }}}

The output is looks like

{{{ ................ Name Stmts Miss Cover Missing

wt_paver_tasks NoSource: No source for code: '/home/me/projects/my-project/my_project/init.py'

Ran 16 tests in 0.158s }}}

It looks like it's getting to line 27 in results.py, but that which would only happen if the os.path.exists(self.filename) call above that failed,

However I can start up python and run the os.path.exists command manually, and it's returning True as expected.

Comments (2)

  1. Log in to comment