pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Coverage cannot handle setuptools/distribute namespace packages #348

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Namespace packages are a feature of setuptools & distribute which allow 
multiple eggs to provide packages within a single namespace. This is very 
useful in large projects. 

I've found that when I attempt to do a coverage analysis on a project which is 
configured this way the nose coverage tool assumes that the *most recently 
loaded egg* contains all of the code for a particular namespace. 

This is obviously an incorrect assumption - since the whole premise of the 
namespace packages feature is that one namespace might be contained in any 
number of eggs. This is doubly annoying in light of my previous report ( 
inability to find source code crashes coverage analysis )

For more information about namespace packages refer to:
http://packages.python.org/distribute/setuptools.html#namespace-packages

Original issue reported on code.google.com by salimfadhley@gmail.com on 25 Jun 2010 at 8:45