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 r.david.murray
Recipients michael.foord, pitrou, r.david.murray, stutzbach
Date 2012-04-09.17:50:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333993838.71.0.189516591877.issue14534@psf.upfronthosting.co.za>
In-reply-to
Content
Antoine: I don't have any problem with that personally, but Michael did, and he's the maintainer :)

But there is a small advantage: it means you don't have to keep repeating the 'unittest.TestCase' boilerplate in each subclass declaration, you only have to decorate the base class once.

Daniel:  Oops, you are right. Michael seemed to have some idea on how to implement the decorator.  The class attribute was my contribution, and obviously that isn't going to work.  I wanted something more transparent than a magic decorator, but it looks like magic will be required.

Which, IMO, is a point in Antoine's favor.  Let's see what Michael has to say.
History
Date User Action Args
2012-04-09 17:50:38r.david.murraysetrecipients: + r.david.murray, pitrou, stutzbach, michael.foord
2012-04-09 17:50:38r.david.murraysetmessageid: <1333993838.71.0.189516591877.issue14534@psf.upfronthosting.co.za>
2012-04-09 17:50:38r.david.murraylinkissue14534 messages
2012-04-09 17:50:37r.david.murraycreate