nose-devs/nose — Issue #82: Nose follows namespace packages __path__
Author: jpellerin
Created: 2011-12-14 15:58:39+00:00
State: open

Given a namespace package shared by Paste and PasteDeploy (two entirely different projects,
installed in different locations, that share the 'paste' module), when running nosetests in the Paste
directory it manages to also pick up tests in PasteDeploy.

This is due to the fact that loadTestsFromModule iterates through all entries in a module's __path__.
This can be alleviated by passing the correct root module path along to loadTestsFromModule
(from loadTestsFromName), and only loading tests from sub directories of it. Doctests also probably
need fixing

What's tricky is the fact that plugins have the current loadTestsFromModule as part of their API; this
would need to be changed

Google Code Info:
Issue #: 167
Author: pjenvey%...@gtempaccount.com
Created On: 2008-03-04T01:29:47.000Z
Closed On: 2009-03-29T20:55:14.000Z