]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130106: Fix a typo in unittest.mock doc (#130107)
authorSrinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Sat, 15 Feb 2025 03:30:12 +0000 (09:00 +0530)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2025 03:30:12 +0000 (03:30 +0000)
Doc/library/unittest.mock.rst

index eae3ef2888eae0717dea7bef42b8f848397547d9..27c169dde727803a70d234a82d0a9f10809227a0 100644 (file)
@@ -2008,7 +2008,7 @@ Imagine we have a project that we want to test with the following structure::
 
 Now we want to test ``some_function`` but we want to mock out ``SomeClass`` using
 :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
+do when it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out
 ``a.SomeClass`` then it will have no effect on our test; module b already has a
 reference to the *real* ``SomeClass`` and it looks like our patching had no
 effect.