[docs] [issue37955] mock.patch incorrect reference to Mock

Paulo Henrique Silva report at bugs.python.org
Mon Aug 26 11:11:48 EDT 2019

New submission from Paulo Henrique Silva <ph.silva at gmail.com>:

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).

assignee: docs at python
components: Documentation
messages: 350537
nosy: docs at python, phsilva
priority: normal
severity: normal
status: open
title: mock.patch incorrect reference to Mock
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the docs mailing list