Message335146
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} |
|
Date |
User |
Action |
Args |
2019-02-10 09:18:06 | kakshay | set | recipients:
+ kakshay, cjw296, michael.foord, kushal.das, xtreak |
2019-02-10 09:18:05 | kakshay | set | messageid: <1549790285.81.0.391896379966.issue21269@roundup.psfhosted.org> |
2019-02-10 09:18:05 | kakshay | link | issue21269 messages |
2019-02-10 09:18:05 | kakshay | create | |
|