Message178751
| Author |
ezio.melotti |
| Recipients |
brett.cannon, ezio.melotti |
| Date |
2013年01月01日.20:32:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1357072359.3.0.3192608198.issue16835@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here's a patch:
1) the base class doesn't inherit from TestCase anymore -- the subclasses do;
2) added a skipUnless() decorator on the C subclass;
3) used the modern if __name__ == '__main__': unittest.main() idiom;
4) renamed the AcceleratedExampleTest to CExampleTest (I prefer the PyFoo/CFoo parallel, "Accelerated" doesn't necessarily imply that it's testing the C version);
5) added a paragraph to explain the idiom;
6) added Post-History;
7) did a couple of minor cleanup in the code; |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月01日 20:32:39 | ezio.melotti | set | recipients:
+ ezio.melotti, brett.cannon |
| 2013年01月01日 20:32:39 | ezio.melotti | set | messageid: <1357072359.3.0.3192608198.issue16835@psf.upfronthosting.co.za> |
| 2013年01月01日 20:32:39 | ezio.melotti | link | issue16835 messages |
| 2013年01月01日 20:32:39 | ezio.melotti | create |
|