Message157869
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. |
|
Date |
User |
Action |
Args |
2012-04-09 17:50:38 | r.david.murray | set | recipients:
+ r.david.murray, pitrou, stutzbach, michael.foord |
2012-04-09 17:50:38 | r.david.murray | set | messageid: <1333993838.71.0.189516591877.issue14534@psf.upfronthosting.co.za> |
2012-04-09 17:50:38 | r.david.murray | link | issue14534 messages |
2012-04-09 17:50:37 | r.david.murray | create | |
|