Skip to content

Commit e7c94ec

Browse files
committed
Fixed method_wo_docstrings test.
1 parent 2f60623 commit e7c94ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/tests/test_validate_docstrings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def test_bad_generic_functions(self, func):
830830
('BadGenericDocStrings', 'method',
831831
('Do not import pandas, as it is imported automatically',)),
832832
('BadGenericDocStrings', 'method_wo_docstrings',
833-
("The object does not have a docstring",)),
833+
("No docstring found",)),
834834
# See Also tests
835835
('BadSeeAlso', 'prefix_pandas',
836836
('pandas.Series.rename in `See Also` section '
@@ -853,7 +853,6 @@ def test_bad_generic_functions(self, func):
853853
('Double line break found; please use only one blank line to '
854854
'separate sections or paragraphs, and do not leave blank lines '
855855
'at the end of docstrings',)),
856-
('NoDocstrings', 'method_wo_docstrings', ("No docstring found",)),
857856
])
858857
def test_bad_docstrings(self, capsys, klass, func, msgs):
859858
result = validate_one(self._import_path(klass=klass, func=func))

0 commit comments

Comments
 (0)