From: Michael Foord Date: Wed, 28 Mar 2012 14:41:28 +0000 (+0100) Subject: Fix unittest.mock.patch docstring X-Git-Tag: v3.3.0a2~30^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa8ec7e076893aaf50ae09956e8a6984985c5cc4;p=python Fix unittest.mock.patch docstring --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 0ae498c080..0a9aece845 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -1350,8 +1350,6 @@ def patch( 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 manager. Inside the body of the function or with statement, the `target` is patched with a `new` object. When the function/with statement exits