Skip to content

Commit e5ee784

Browse files
[3.13] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130143)
gh-130106: Fix a typo in unittest.mock doc (GH-130107) (cherry picked from commit d2e60d8) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
1 parent 7b0543e commit e5ee784

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
@@ -1984,7 +1984,7 @@ Imagine we have a project that we want to test with the following structure::
19841984

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

0 commit comments

Comments
 (0)