Skip to content

Commit e620377

Browse files
gh-156970: Set Mock.return_value's docstring (#156971)
Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 5141621 commit e620377

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def __set_return_value(self, value):
595595

596596
__return_value_doc = "The value to be returned when the mock is called."
597597
return_value = property(__get_return_value, __set_return_value,
598-
__return_value_doc)
598+
doc=__return_value_doc)
599599

600600

601601
@property
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set the docstring of :attr:`unittest.mock.Mock.return_value`.

0 commit comments

Comments
 (0)