From aa8ec7e076893aaf50ae09956e8a6984985c5cc4 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Wed, 28 Mar 2012 15:41:28 +0100 Subject: [PATCH] Fix unittest.mock.patch docstring --- Lib/unittest/mock.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 0ae498c08082..0a9aece8458f 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 -- 2.47.3