Skip to content

Commit 8c3c048

Browse files
Set the docstring of Mock.return_value correctly.
1 parent f74cdf8 commit 8c3c048

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:`Mock.return_value` correctly.

0 commit comments

Comments
 (0)