From ee4ea3caff5e5ff624b9ef33bc3df6bfb64bbf12 Mon Sep 17 00:00:00 2001 From: agobis Date: Fri, 29 May 2020 14:05:54 -0400 Subject: [PATCH 1/3] Add change version for Mock Call args and kwargs properties --- Doc/library/unittest.mock.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 3643d1ad96ed11..4ae7c9cbb52ec4 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -647,6 +647,10 @@ the *new_callable* argument to :func:`patch`. arguments and make more complex assertions. See :ref:`calls as tuples `. + .. versionchanged:: 3.8 + Added the ``args`` and ``kwargs`` properties to more easily access the + positional args and keyword args within a ``Call`` object tuple. + .. attribute:: call_args_list From 3399458307b91174118a133b2a0fc9367f4595d4 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 29 May 2020 18:35:19 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Documentation/2020-05-29-18-35-18.bpo-40820.SY-wL0.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2020-05-29-18-35-18.bpo-40820.SY-wL0.rst diff --git a/Misc/NEWS.d/next/Documentation/2020-05-29-18-35-18.bpo-40820.SY-wL0.rst b/Misc/NEWS.d/next/Documentation/2020-05-29-18-35-18.bpo-40820.SY-wL0.rst new file mode 100644 index 00000000000000..c1902f3da445de --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2020-05-29-18-35-18.bpo-40820.SY-wL0.rst @@ -0,0 +1 @@ +Add missing change version for ``args`` and ``kwargs`` mock call objects. Contributed by Andrew Gobis. \ No newline at end of file From eb7c6519fd93617553f2ba2d34337936f9e9cd9a Mon Sep 17 00:00:00 2001 From: agobis Date: Fri, 29 May 2020 15:03:29 -0400 Subject: [PATCH 3/3] Remove `tuple` from phrasing Add self to `Misc/ACKS` --- Doc/library/unittest.mock.rst | 2 +- Misc/ACKS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 4ae7c9cbb52ec4..9cc78c791e09d7 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -649,7 +649,7 @@ the *new_callable* argument to :func:`patch`. .. versionchanged:: 3.8 Added the ``args`` and ``kwargs`` properties to more easily access the - positional args and keyword args within a ``Call`` object tuple. + positional args and keyword args within a ``Call`` object. .. attribute:: call_args_list diff --git a/Misc/ACKS b/Misc/ACKS index a505a3d7840369..d7b1206ffbb912 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -599,6 +599,7 @@ Neil Girdhar Matt Giuca Franz Glasner Wim Glenn +Andrew Gobis Michael Goderbauer Karan Goel Jeroen Van Goey