#10458: Doctest framework fails to parse multiline input pasted from sage
interactive prompt
-----------------------+----------------------------------------------------
Reporter: kini | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone:
Component: doctest | Keywords: doctest, continuation, multiline
input, interactive prompt
Work_issues: | Upstream: N/A
Reviewer: | Author: Keshav Kini
Merged: | Dependencies:
-----------------------+----------------------------------------------------
Comment(by rbeezer):
Replying to [comment:16 leif]:
> Another, slightly related issue is that you can't simply copy tracebacks
from the `sage:` prompt into docstrings because they look a bit different
in the doctest framework (and specific line numbers should of course be
avoided in a doctest). This ticket certainly won't fix ''that'' though.
And someplace the first line of a traceback lacks a colon, and a doctest
needs one. And maybe in the notebook it is different yet again? Or
something like that.
See semi-related, new ticket #11621. Does it belong in the meta-ticket?
I tripped over it as part of doctesting Sage examples placed into a
textbook where I need to be careful about long lines for the printed
version.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10458#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.