classification
Title: unittest.mock.sentinel documentation typo
Type: Stage:
Components: Documentation Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, gaydayav
Priority: normal Keywords:

Created on 2021-07-19 21:15 by gaydayav, last changed 2021-07-19 21:15 by gaydayav.

Messages (1)
msg397839 - (view) Author: Andrii Haidai (gaydayav) Date: 2021-07-19 21:15
here: 
    https://docs.python.org/3.3/library/unittest.mock.html#sentinel
in code example block in last command line
    >>> sentinel.some_object
according to the above 26.4.5.1 article context it looks like the other commad is expected:
    >>> result
To ensure that at the end "result" equals sentinel.some_object we probably should print the "result" value to check, not the "sentinel.some_object" itself.
History
Date User Action Args
2021-07-19 21:15:28gaydayavcreate