Skip to content

Commit 94b5712

Browse files
committed
fix: double period typo in unittest.mock AttributeError message.
1 parent c9d9f78 commit 94b5712

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def __getattr__(self, name):
664664
if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
665665
raise AttributeError(
666666
f"{name!r} is not a valid assertion. Use a spec "
667-
f"for the mock if {name!r} is meant to be an attribute.")
667+
f"for the mock if {name!r} is meant to be an attribute")
668668

669669
with NonCallableMock._lock:
670670
result = self._mock_children.get(name)

0 commit comments

Comments
 (0)