Remove note saying patch is straightforward (#18431)

While `unittest.mock.patch` is a great thing, it is not straightforward.
If it were straightforward there wouldn't be such a huge amount of
documentation for it, and frankly, when myself and others who I've
read about often struggle to figure out what on earth `patch()` wants,
coming to the docs to read that it's straightforward is not helpful.
This commit is contained in:
Brian Curtin 2020-02-10 10:47:17 -07:00 committed by GitHub
parent 29b3fc0a18
commit e00c1d0c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1327,8 +1327,7 @@ patch
.. note:: .. note::
:func:`patch` is straightforward to use. The key is to do the patching in the The key is to do the patching in the right namespace. See the section `where to patch`_.
right namespace. See the section `where to patch`_.
.. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) .. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)