We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a122415 commit f23ed0cCopy full SHA for f23ed0c
Doc/library/unittest.mock.rst
@@ -1958,7 +1958,7 @@ Imagine we have a project that we want to test with the following structure::
1958
1959
Now we want to test ``some_function`` but we want to mock out ``SomeClass`` using
1960
: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
+do when it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out
1962
``a.SomeClass`` then it will have no effect on our test; module b already has a
1963
reference to the *real* ``SomeClass`` and it looks like our patching had no
1964
effect.
0 commit comments