Issue 33491: mistype of method's name (original) (raw)

Issue33491

Created on 2018-05-14 07:38 by Ivan Gushchin, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg316493 - (view) Author: Ivan Gushchin (Ivan Gushchin) Date: 2018-05-14 07:38
This link https://docs.python.org/2/library/unittest.html#unittest.SkipTest names method from Capital letter. At the same time method name (according to help(unittest) ) is skipTest (starting lowercase). For those who reads documentation online this mistype leads to error.
msg316609 - (view) Author: bbayles (bbayles) * Date: 2018-05-15 02:07
I think you'll find that your link points to the exception class `SkipTest`, which does start with a capital level. This is distinct from the `skipTest` method of `unittest.TestCase` objects, which starts with a lowercase letter. The documentation looks right to me. See [1] for a demonstration of the difference. [1] https://gist.github.com/bbayles/5158750b48a5accfceaa53a898b8b902
History
Date User Action Args
2022-04-11 14:59:00 admin set github: 77672
2020-05-31 13:32:52 serhiy.storchaka set status: open -> closedresolution: not a bugstage: resolved
2018-05-15 02:07:56 bbayles set nosy: + bbaylesmessages: +
2018-05-14 07:38:51 Ivan Gushchin create