[issue40820] Mock Call attributes args and kwargs have no changeversion
Andrius Gobis
report at bugs.python.org
Fri May 29 14:04:01 EDT 2020
New submission from Andrius Gobis <gobisandrius at gmail.com>:
In Python 3.8, the ``args`` and ``kwargs`` properties were added to Mock ``Call`` objects (PR: https://github.com/python/cpython/pull/11807 Issue: https://bugs.python.org/issue21269).
However, the change did not add a change version to the documentation.
The ``Doc/library/unittest.mock.rst`` file should include the following in the ``Call`` section:
```
The ``Doc/library/unittest.mock.rst`` file should include the following in the ``Call`` section:
```
.. versionchanged:: 3.8
Added the ``args`` and ``kwargs`` properties to more easily access the positional args and keyword args within a ``Call`` object tuple.
```
----------
assignee: docs at python
components: Documentation
messages: 370330
nosy: Andrius Gobis, docs at python
priority: normal
severity: normal
status: open
title: Mock Call attributes args and kwargs have no changeversion
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40820>
_______________________________________
More information about the Python-bugs-list
mailing list