classification
Title: mistype of method's name
Type: enhancement Stage:
Components: Documentation Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Ivan Gushchin, bbayles, docs@python
Priority: normal Keywords:

Created on 2018-05-14 07:38 by Ivan Gushchin, last changed 2018-05-15 02:07 by bbayles.

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
2018-05-15 02:07:56bbaylessetnosy: + bbayles
messages: + msg316609
2018-05-14 07:38:51Ivan Gushchincreate