https://github.com/python/cpython/commit/35ecaf90b2eb5494ac92c3202f44a3602b4da87c commit: 35ecaf90b2eb5494ac92c3202f44a3602b4da87c branch: main author: Weilin Du <108666168+lamentxu...@users.noreply.github.com> committer: cjw296 <ch...@withers.org> 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 -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com