https://github.com/python/cpython/commit/35ecaf90b2eb5494ac92c3202f44a3602b4da87c
commit: 35ecaf90b2eb5494ac92c3202f44a3602b4da87c
branch: main
author: Weilin Du <[email protected]>
committer: cjw296 <[email protected]>
date: 2025-06-28T10:25:07+01:00
summary:
Fix a typo in Lib/unittest/mock.py (#136067)
files:
M Lib/unittest/mock.py
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index e370aa48b7c703..e1dbfdacf56337 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -986,7 +986,7 @@ def _error_message():
def assert_called_once_with(self, /, *args, **kwargs):
- """assert that the mock was called exactly once and that that call was
+ """assert that the mock was called exactly once and that call was
with the specified arguments."""
if not self.call_count == 1:
msg = ("Expected '%s' to be called once. Called %s times.%s"
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]