]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove note saying patch is straightforward (#18431)
authorBrian Curtin <brian@python.org>
Mon, 10 Feb 2020 17:47:17 +0000 (10:47 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 17:47:17 +0000 (10:47 -0700)
commite00c1d0c45975c0e9367f05f8c68bb32d68c2fbf
tree9d7d781ee1dac699930a018f28787be4deb5cebb
parent29b3fc0a18f105de666fdd586b537f34e349766d
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.
Doc/library/unittest.mock.rst