#8708: allow doctest script to handle docstrings with triple single quotes
---------------------------------------------------------+------------------
Reporter: mvngu | Owner: tbd
Type: enhancement | Status:
needs_info
Priority: minor | Milestone:
sage-4.7.2
Component: doctest | Keywords:
Work_issues: Rebase on #9739 (and perhaps also 10952). | Upstream: N/A
Reviewer: Burcin Erocal | Author:
John Palmieri
Merged: | Dependencies:
#9739
---------------------------------------------------------+------------------
Changes (by jhpalmieri):
* status: needs_work => needs_info
Old description:
> As the subject says. This is related to #8699. See this
> [http://groups.google.com/group/sage-
> devel/browse_thread/thread/54de5b70bc7b18e3 sage-devel] thread for some
> background information.
>
> ----
>
> Apply only [attachment:trac_8708-jhp.v2.patch] to the '''scripts
> repository'''.
New description:
As the subject says. This is related to #8699. See this
[http://groups.google.com/group/sage-
devel/browse_thread/thread/54de5b70bc7b18e3 sage-devel] thread for some
background information.
----
Apply
- [attachment:trac_8708-jhp.v2.patch] to the '''scripts repository'''
- [attachment:trac_8708-doctests.patch] to the Sage repository.
--
Comment:
The test failure in interacts/libary_cython.pyx is because of a doctest
which would have failed in the past, but it was enclosed in triple single
quotes, and so was skipped by the doctesting framework. (There is a line
saying `sage: print cellular(rule, 3)` with no output after it.) We can
certainly just stick in the output, but I have no idea if it's right.
I have a fix for sageinspect.py, but I'm not sure about worksheet.py. I
can work on it some more, but we should check whether there are failures
in the flask notebook before working too hard on this one: if the file is
going to go away soon, it's not worth working too hard fixing it.
I'm attaching a patch for the Sage library fixing the two files there;
I'll try to get information about whether the patch to library_cython.pyx
is actually the right thing to do.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8708#comment:18>
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.