]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a typo in Lib/unittest/mock.py (#136067)
authorWeilin Du <108666168+LamentXU123@users.noreply.github.com>
Sat, 28 Jun 2025 09:25:07 +0000 (17:25 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Jun 2025 09:25:07 +0000 (10:25 +0100)
Lib/unittest/mock.py

index e370aa48b7c70309975b335197b6aee0a28cf696..e1dbfdacf56337336f82eb462b090112650a0569 100644 (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"