Message177350
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:36 | rbcollins | set | recipients:
+ rbcollins, r.david.murray, chris.jerdonek |
2012-12-11 20:32:36 | rbcollins | set | messageid: <1355257956.22.0.572013938119.issue16662@psf.upfronthosting.co.za> |
2012-12-11 20:32:36 | rbcollins | link | issue16662 messages |
2012-12-11 20:32:35 | rbcollins | create | |
|