Author rbcollins
Recipients chris.jerdonek, r.david.murray, rbcollins
Date 2012-12-11.20:32:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355257956.22.0.572013938119.issue16662@psf.upfronthosting.co.za>
In-reply-to
Content
I have a package with tests in it. If the tests match test*.py, they are loaded, and load_tests within each one called. But load_tests on the package isn't called.

If I change the pattern supplied by the user to match the package, then the tests within adjacent packages that don't have a load_tests hook but have files called test*.py will no longer match, but the package will match.

My preference would be for the special case to just be removed, and load_tests called if it exists: its existence is enough of an opt-in.

Failing that, having two distinct fn patterns, one for packages and one for filenames (note the difference: one operates in the python namespace, one the filesystem namespace), would suffice.
History
Date User Action Args
2012-12-11 20:32:36rbcollinssetrecipients: + rbcollins, r.david.murray, chris.jerdonek
2012-12-11 20:32:36rbcollinssetmessageid: <1355257956.22.0.572013938119.issue16662@psf.upfronthosting.co.za>
2012-12-11 20:32:36rbcollinslinkissue16662 messages
2012-12-11 20:32:35rbcollinscreate