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 jameshcorbett
Recipients dorosch, jameshcorbett
Date 2020-07-28.23:44:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595979844.54.0.0642416476914.issue41046@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-07-28 23:44:04jameshcorbettsetrecipients: + jameshcorbett, dorosch
2020-07-28 23:44:04jameshcorbettsetmessageid: <1595979844.54.0.0642416476914.issue41046@roundup.psfhosted.org>
2020-07-28 23:44:04jameshcorbettlinkissue41046 messages
2020-07-28 23:44:04jameshcorbettcreate