Skip to content

Commit 86db757

Browse files
author
Matthias Koeppe
committed
src/sage/misc/bindable_class.py: In doctests, strip output of sage_getdoc
1 parent be532a2 commit 86db757

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/misc/bindable_class.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ class BoundClass(functools.partial):
162162
163163
Introspection works, at least partially:
164164
165-
sage: sage_getdoc(c)
166-
' Some documentation for Outer.Inner\n'
165+
sage: sage_getdoc(c).strip()
166+
'Some documentation for Outer.Inner'
167167
sage: sage_getfile(c)
168168
'.../sage/misc/bindable_class.py'
169169
170170
sage: c = x.Inner2
171-
sage: sage_getdoc(c)
172-
' Some documentation for Inner2\n'
171+
sage: sage_getdoc(c).strip()
172+
'Some documentation for Inner2'
173173
sage: sage_getsourcelines(c)
174174
(['class Inner2(BindableClass):...], ...)
175175

0 commit comments

Comments
 (0)