Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix doctest getting source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Aug 25, 2021
1 parent e9c8637 commit 712f926
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/misc/sageinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,8 +2260,11 @@ def sage_getsourcelines(obj):
([...'class MPolynomialIdeal( MPolynomialIdeal_singular_repr, \\\n',
...)
sage: x = var('x')
sage: lines, lineno = sage_getsourcelines(x); lines[0:2]
sage: lines, lineno = sage_getsourcelines(x); lines[0:5]
['cdef class Expression(CommutativeRingElement):\n',
'\n',
' cdef GEx _gobj\n',
'\n',
' cpdef object pyobject(self):\n']
sage: lines[-1] # last line
' return S\n'
Expand Down

0 comments on commit 712f926

Please sign in to comment.