Message117192
| Author |
loewis |
| Recipients |
loewis, michael.foord |
| Date |
2010年09月23日.14:32:46 |
| SpamBayes Score |
0.00010519117 |
| Marked as misclassified |
No |
| Message-id |
<1285252368.31.0.189981048833.issue9926@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In Python 3.2, when inheriting from TestSuite, it is no longer possible to override __call__ (e.g. to introduce a TestSuite setUp and tearDown).
The __call__ method will not be called anymore.
Instead, if the object has a _wrapped_run defined (which it will, since it inherits from TestSuite), then this is called instead. Overriding _wrapped_run is a work-around, however, this being a private method, overriding it is probably not a good idea. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年09月23日 14:32:48 | loewis | set | recipients:
+ loewis, michael.foord |
| 2010年09月23日 14:32:48 | loewis | set | messageid: <1285252368.31.0.189981048833.issue9926@psf.upfronthosting.co.za> |
| 2010年09月23日 14:32:46 | loewis | link | issue9926 messages |
| 2010年09月23日 14:32:46 | loewis | create |
|