Skip to content

Commit 0d34a88

Browse files
committed
update test_validate_docstrings.py: fix expected error message
1 parent f2d6449 commit 0d34a88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/tests/test_validate_docstrings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ def test_bad_generic_functions(self, func):
725725
('BadReturns', 'no_punctuation',
726726
('Return value description should finish with "."',)),
727727
('BadReturns', 'named_single_return',
728-
('No name is to be provided when returning a single value',)),
728+
('The first line of the Returns section should contain only the '
729+
'type, unless multiple values are being returned.',)),
729730
('BadReturns', 'no_capitalization',
730731
('Return value "foo" description should start with a capital '
731732
'letter',)),

0 commit comments

Comments
 (0)