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 kakshay
Recipients cjw296, kakshay, kushal.das, michael.foord, xtreak
Date 2019-02-10.09:18:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549790285.81.0.391896379966.issue21269@roundup.psfhosted.org>
In-reply-to
Content
Thanks @xtreak!
I've added a PR with the following API

➜  cpython git:(fix-issue-21269) ✗ ./python.exe
Python 3.8.0a0 (heads/fix-issue-21269-dirty:2433a2ab70, Feb 10 2019, 14:24:54)
[Clang 10.0.0 (clang-1000.10.44.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from unittest.mock import Mock
>>> m = Mock()
>>> m(1, a=23)
<Mock name='mock()' id='4552188368'>
>>> m.call_args
call(1, a=23)
>>> m.call_args.args     #after this patch
(1,)
>>> m.call_args.kwargs   #after this patch
{'a': 23}
>>> m.call_args_list[0].args    #after this patch
(1,)
>>> m.call_args_list[0].kwargs   #after this patch
{'a': 23}
History
Date User Action Args
2019-02-10 09:18:06kakshaysetrecipients: + kakshay, cjw296, michael.foord, kushal.das, xtreak
2019-02-10 09:18:05kakshaysetmessageid: <1549790285.81.0.391896379966.issue21269@roundup.psfhosted.org>
2019-02-10 09:18:05kakshaylinkissue21269 messages
2019-02-10 09:18:05kakshaycreate