-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Closed
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
https://docs.python.org/3/library/unittest.mock.html#where-to-patch has the text "which we will have to do then it imports" which should be "which we will have to do when it imports" (i.e. s/then/when/
).
The source for this is
cpython/Doc/library/unittest.mock.rst
Lines 2010 to 2011 in 3bd3e09
:func:`patch`. The problem is that when we import module b, which we will have to | |
do then it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out |
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Todo