From 94b571243edad4059d26b826504cdc034c179f05 Mon Sep 17 00:00:00 2001 From: AzizCode92 Date: Sat, 16 Aug 2025 23:33:34 +0200 Subject: [PATCH] fix: double period typo in unittest.mock AttributeError message. --- Lib/unittest/mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index c4ce8f8a3eb930..8b2070813bda50 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -664,7 +664,7 @@ def __getattr__(self, name): if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST: raise AttributeError( f"{name!r} is not a valid assertion. Use a spec " - f"for the mock if {name!r} is meant to be an attribute.") + f"for the mock if {name!r} is meant to be an attribute") with NonCallableMock._lock: result = self._mock_children.get(name)