Fix a typo in Lib/unittest/mock.py (#136067)

This commit is contained in:
Weilin Du 2025-06-28 17:25:07 +08:00 committed by GitHub
parent c419af9e27
commit 35ecaf90b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"