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 50e8603 commit 15033d1Copy full SHA for 15033d1
Doc/library/unittest.mock.rst
@@ -1572,8 +1572,8 @@ do then it imports ``SomeClass`` from module a. If we use :func:`patch` to mock
1572
reference to the *real* ``SomeClass`` and it looks like our patching had no
1573
effect.
1574
1575
-The key is to patch out ``SomeClass`` where it is used (or where it is looked up
1576
-). In this case ``some_function`` will actually look up ``SomeClass`` in module b,
+The key is to patch out ``SomeClass`` where it is used (or where it is looked up).
+In this case ``some_function`` will actually look up ``SomeClass`` in module b,
1577
where we have imported it. The patching should look like::
1578
1579
@patch('b.SomeClass')
0 commit comments