From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sat, 28 Jun 2025 09:25:07 +0000 (+0800) Subject: Fix a typo in Lib/unittest/mock.py (#136067) X-Git-Tag: v3.15.0a1~1152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35ecaf90b2eb5494ac92c3202f44a3602b4da87c;p=thirdparty%2FPython%2Fcpython.git Fix a typo in Lib/unittest/mock.py (#136067) --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index e370aa48b7c7..e1dbfdacf563 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -986,7 +986,7 @@ class NonCallableMock(Base): 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"