]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-62480: De-personalize "Coping with mutable arguments" section in `unittest.mock...
authordereckduran <67027239+dereckduran@users.noreply.github.com>
Mon, 17 Nov 2025 11:44:44 +0000 (03:44 -0800)
committerGitHub <noreply@github.com>
Mon, 17 Nov 2025 11:44:44 +0000 (13:44 +0200)
Doc/library/unittest.mock-examples.rst

index 6af4298d44f5323919d7898afb398113feea0e01..61c75b5a03b1035d85c749d882fbc353b1f6125b 100644 (file)
@@ -863,9 +863,9 @@ Here's one solution that uses the :attr:`~Mock.side_effect`
 functionality. If you provide a ``side_effect`` function for a mock then
 ``side_effect`` will be called with the same args as the mock. This gives us an
 opportunity to copy the arguments and store them for later assertions. In this
-example I'm using *another* mock to store the arguments so that I can use the
+example we're using *another* mock to store the arguments so that we can use the
 mock methods for doing the assertion. Again a helper function sets this up for
-me. ::
+us. ::
 
     >>> from copy import deepcopy
     >>> from unittest.mock import Mock, patch, DEFAULT