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 39cd972 commit d2e60d8Copy full SHA for d2e60d8
Doc/library/unittest.mock.rst
@@ -2008,7 +2008,7 @@ Imagine we have a project that we want to test with the following structure::
2008
2009
Now we want to test ``some_function`` but we want to mock out ``SomeClass`` using
2010
:func:`patch`. The problem is that when we import module b, which we will have to
2011
-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
2012
``a.SomeClass`` then it will have no effect on our test; module b already has a
2013
reference to the *real* ``SomeClass`` and it looks like our patching had no
2014
effect.
0 commit comments