This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author phsilva
Recipients docs@python, phsilva
Date 2019-08-26.15:11:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566832308.08.0.460509709565.issue37955@roundup.psfhosted.org>
In-reply-to
Content
When explaining the usage of keyword arguments on mock.patch:

```
patch() takes arbitrary keyword arguments. These will be passed to the Mock (or new_callable) on construction.
```

default new_callable is MagicMock and it should be mentioned here instead of Mock (even tough MagickMock inherits from it).
History
Date User Action Args
2019-08-26 15:11:48phsilvasetrecipients: + phsilva, docs@python
2019-08-26 15:11:48phsilvasetmessageid: <1566832308.08.0.460509709565.issue37955@roundup.psfhosted.org>
2019-08-26 15:11:47phsilvalinkissue37955 messages
2019-08-26 15:11:47phsilvacreate