Skip to content

Commit 8a4286a

Browse files
dereckduranmiss-islington
authored andcommitted
gh-62480: De-personalize "Coping with mutable arguments" section in unittest.mock examples (GH-141323)
(cherry picked from commit d527d3b) Co-authored-by: dereckduran <67027239+dereckduran@users.noreply.github.com>
1 parent 61a24ea commit 8a4286a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/unittest.mock-examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,9 @@ Here's one solution that uses the :attr:`~Mock.side_effect`
863863
functionality. If you provide a ``side_effect`` function for a mock then
864864
``side_effect`` will be called with the same args as the mock. This gives us an
865865
opportunity to copy the arguments and store them for later assertions. In this
866-
example I'm using *another* mock to store the arguments so that I can use the
866+
example we're using *another* mock to store the arguments so that we can use the
867867
mock methods for doing the assertion. Again a helper function sets this up for
868-
me. ::
868+
us. ::
869869

870870
>>> from copy import deepcopy
871871
>>> from unittest.mock import Mock, patch, DEFAULT

0 commit comments

Comments
 (0)