Skip to content

Commit 1178cae

Browse files
committed
Fix good_imports test
Signed-off-by: Fabian Haase <[email protected]>
1 parent 384c77f commit 1178cae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/tests/test_validate_docstrings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ def good_imports(self):
225225
Examples
226226
--------
227227
This example does not import pandas or import numpy.
228-
>>> import time
229228
>>> import datetime
229+
>>> datetime.MAXYEAR
230+
9999
230231
"""
231232
pass
232233

@@ -672,7 +673,7 @@ def test_good_class(self):
672673
@capture_stderr
673674
@pytest.mark.parametrize("func", [
674675
'plot', 'sample', 'random_letters', 'sample_values', 'head', 'head1',
675-
'contains', 'mode'])
676+
'contains', 'mode', 'good_imports'])
676677
def test_good_functions(self, func):
677678
errors = validate_one(self._import_path(
678679
klass='GoodDocStrings', func=func))['errors']

0 commit comments

Comments
 (0)