This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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.
Date User Action Args
2012-12-11 20:32:36rbcollinssetrecipients: + rbcollins, r.david.murray, chris.jerdonek
2012-12-11 20:32:36rbcollinssetmessageid: <>
2012-12-11 20:32:36rbcollinslinkissue16662 messages
2012-12-11 20:32:35rbcollinscreate