summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMario Corchero <mcorcherojim@bloomberg.net>2023-07-04 17:34:43 (GMT)
committerGitHub <noreply@github.com>2023-07-04 17:34:43 (GMT)
commit2dfc7fae787e65726f24bfe9efe05418b05ee8e2 (patch)
tree7e3e0fcc7b3811bdff9f52a15a08cd2ea1518d40 /Doc
parent8a4bba8b9764ba28667b137fe62c11aea672f500 (diff)
downloadcpython-2dfc7fae787e65726f24bfe9efe05418b05ee8e2.zip
cpython-2dfc7fae787e65726f24bfe9efe05418b05ee8e2.tar.gz
cpython-2dfc7fae787e65726f24bfe9efe05418b05ee8e2.tar.bz2
gh-61215: Rename `wait_until_any_call` to `wait_until_any_call_with` (#106414)
mock: Rename `wait_until_any_call` to `wait_until_any_call_with` Rename the method to be more explicit that it expects the args and kwargs to wait for.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.mock.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 756422b..6d5f17d 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1126,7 +1126,7 @@ object::
>>> mock.wait_until_called(timeout=1)
>>> thread.join()
- .. method:: wait_until_any_call(*args, **kwargs)
+ .. method:: wait_until_any_call_with(*args, **kwargs)
Waits until the the mock is called with the specified arguments.
@@ -1136,7 +1136,7 @@ object::
>>> mock = ThreadingMock()
>>> thread = threading.Thread(target=mock, args=("arg1", "arg2",), kwargs={"arg": "thing"})
>>> thread.start()
- >>> mock.wait_until_any_call("arg1", "arg2", arg="thing")
+ >>> mock.wait_until_any_call_with("arg1", "arg2", arg="thing")
>>> thread.join()
.. attribute:: DEFAULT_TIMEOUT