mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
8a4bba8b97
commit
2dfc7fae78
3 changed files with 28 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue