diff options
author | Mario Corchero <mcorcherojim@bloomberg.net> | 2023-07-04 17:34:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 17:34:43 (GMT) |
commit | 2dfc7fae787e65726f24bfe9efe05418b05ee8e2 (patch) | |
tree | 7e3e0fcc7b3811bdff9f52a15a08cd2ea1518d40 /Lib/unittest | |
parent | 8a4bba8b9764ba28667b137fe62c11aea672f500 (diff) | |
download | cpython-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 'Lib/unittest')
-rw-r--r-- | Lib/unittest/mock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index b542a9a..7ef7e71 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -3070,7 +3070,7 @@ class ThreadingMixin(Base): f" timeout({timeout}).") raise AssertionError(msg) - def wait_until_any_call(self, *args, **kwargs): + def wait_until_any_call_with(self, *args, **kwargs): """Wait until the mock object is called with given args. Waits for the timeout in seconds provided in the constructor. |