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 pitrou
Recipients michael.foord, pitrou, r.david.murray, stutzbach
Date 2012-04-09.20:47:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334004146.3379.43.camel@localhost.localdomain>
In-reply-to <1334004129.69.0.0315079342513.issue14534@psf.upfronthosting.co.za>
Content
> So the technique I suggested is that the TestLoader checks classes for
> the "testbase" (or whatever we call it) *in the class dict*. So
> inheritance doesn't matter - a class is only excluded from test
> loading if it has the attribute directly.

Why not document the official recommendation in the docs?
Adding another gimmick isn't very useful. It doesn't add a
functionality. It doesn't even make it significantly easier to write
tests (unless you have more test classes than test methods). And it
means that people have to remember two idioms instead of one.
History
Date User Action Args
2012-04-09 20:47:56pitrousetrecipients: + pitrou, stutzbach, r.david.murray, michael.foord
2012-04-09 20:47:56pitroulinkissue14534 messages
2012-04-09 20:47:56pitroucreate