mirror of https://github.com/python/cpython
Corrected grammar mistake in documentation (#1713)
There was an unneeded space before a closing parenthesis in the `unittest.mock` documentation.
This commit is contained in:
parent
50e86033de
commit
15033d145b
|
@ -1572,8 +1572,8 @@ do then it imports ``SomeClass`` from module a. If we use :func:`patch` to mock
|
||||||
reference to the *real* ``SomeClass`` and it looks like our patching had no
|
reference to the *real* ``SomeClass`` and it looks like our patching had no
|
||||||
effect.
|
effect.
|
||||||
|
|
||||||
The key is to patch out ``SomeClass`` where it is used (or where it is looked up
|
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,
|
In this case ``some_function`` will actually look up ``SomeClass`` in module b,
|
||||||
where we have imported it. The patching should look like::
|
where we have imported it. The patching should look like::
|
||||||
|
|
||||||
@patch('b.SomeClass')
|
@patch('b.SomeClass')
|
||||||
|
|
Loading…
Reference in New Issue