Skip to content

Commit f23ed0c

Browse files
[3.12] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130144)
gh-130106: Fix a typo in unittest.mock doc (GH-130107) (cherry picked from commit d2e60d8) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <[email protected]>
1 parent a122415 commit f23ed0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ Imagine we have a project that we want to test with the following structure::
19581958

19591959
Now we want to test ``some_function`` but we want to mock out ``SomeClass`` using
19601960
:func:`patch`. The problem is that when we import module b, which we will have to
1961-
do then it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out
1961+
do when it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out
19621962
``a.SomeClass`` then it will have no effect on our test; module b already has a
19631963
reference to the *real* ``SomeClass`` and it looks like our patching had no
19641964
effect.

0 commit comments

Comments
 (0)