New submission from Paulo Henrique Silva <ph.si...@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@python
components: Documentation
messages: 350537
nosy: docs@python, phsilva
priority: normal
severity: normal
status: open
title: mock.patch incorrect reference to Mock
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to