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 7b0543e commit e5ee784Copy full SHA for e5ee784
Doc/library/unittest.mock.rst
@@ -1984,7 +1984,7 @@ Imagine we have a project that we want to test with the following structure::
1984
1985
Now we want to test ``some_function`` but we want to mock out ``SomeClass`` using
1986
: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
+do when it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out
1988
``a.SomeClass`` then it will have no effect on our test; module b already has a
1989
reference to the *real* ``SomeClass`` and it looks like our patching had no
1990
effect.
0 commit comments