Message374542
I was careless in my example, it would need to be `cls.skipTest(reason)`. However, that really doesn't have anything to do with why it should be a `classmethod` instead of an instance method: it's so that you can call `skipTest` from `classmethods`, namely `setUpClass` which is called by the `unittest` framework. You can currently call `skipTest` from `setUpClass` only with something ugly like `cls.skipTest(None, reason)` (i.e. passing `None` for the `self` parameter, which works because `self` isn't used). |
|
Date |
User |
Action |
Args |
2020-07-28 23:44:04 | jameshcorbett | set | recipients:
+ jameshcorbett, dorosch |
2020-07-28 23:44:04 | jameshcorbett | set | messageid: <1595979844.54.0.0642416476914.issue41046@roundup.psfhosted.org> |
2020-07-28 23:44:04 | jameshcorbett | link | issue41046 messages |
2020-07-28 23:44:04 | jameshcorbett | create | |
|