nose-devs/nose — Issue #270: .loadTestsFromModule() quirkiness
Author: jpellerin
Created: 2011-12-14 16:06:07+00:00
State: open

In trunk r495, .loadTestsFromModule() is an oddball because it's the only
loader method that calls the corresponding .want*() method on the same
object that was passed to the .loadTestsFrom*() method. Sometimes, it
decides not to load tests from the module after all. It would appear the
.wantModule() call would be more comfortable in .loadTestsFromName(). A
related oddity is that, even if the module is a discovered module, and
.wantModule() returns false, plugin .loadTestsFromModule() methods are
still called, as are loads from directories in __path__.

It appears this is done to make the doctests plugin work, but I found that
the irregularity here made it harder to understand the loader and selector
code as a whole, not just that particular class or method.

Google Code Info:
Issue #: 187
Author: j...@pobox.com
Created On: 2008-05-14T21:08:06.000Z
Closed On: