Skip to content

Commit da44289

Browse files
committed
Fix
1 parent 7933dd9 commit da44289

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

mne/utils/docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5228,7 +5228,7 @@ def copy_doc(source):
52285228
... def m1():
52295229
... ''' this gets appended'''
52305230
... pass
5231-
>>> print(B.m1.__doc__)
5231+
>>> print(B.m1.__doc__) # doctest: +NORMALIZE_WHITESPACE
52325232
Docstring for m1
52335233
this gets appended
52345234
"""

mne/utils/tests/test_docs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ def method_f3(self):
203203
a : int
204204
Parameter a
205205
b : int
206-
Parameter b"""
206+
Parameter b
207+
"""
207208
)
208209

209210
assert (
@@ -214,7 +215,8 @@ def method_f3(self):
214215
Returns
215216
-------
216217
nothing.
217-
method_f3 own docstring"""
218+
method_f3 own docstring
219+
"""
218220
)
219221

220222
assert A.method_f3.__doc__ == "Docstring for f3.\n\n"

0 commit comments

Comments
 (0)