mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix unittest.mock.patch docstring
This commit is contained in:
parent
2309ed861a
commit
aa8ec7e076
1 changed files with 0 additions and 2 deletions
|
@ -1350,8 +1350,6 @@ def patch(
|
||||||
spec_set=None, autospec=None, new_callable=None, **kwargs
|
spec_set=None, autospec=None, new_callable=None, **kwargs
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
`patch` acts as a function decorator, class decorator or a context
|
|
||||||
|
|
||||||
`patch` acts as a function decorator, class decorator or a context
|
`patch` acts as a function decorator, class decorator or a context
|
||||||
manager. Inside the body of the function or with statement, the `target`
|
manager. Inside the body of the function or with statement, the `target`
|
||||||
is patched with a `new` object. When the function/with statement exits
|
is patched with a `new` object. When the function/with statement exits
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue