#12069: fix doctesting of .sage files
--------------------------+-------------------------------------------------
Reporter: jhpalmieri | Owner: mvngu
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-4.8
Component: doctest | Keywords: doctest
Work_issues: | Upstream: N/A
Reviewer: | Author: John Palmieri
Merged: | Dependencies:
--------------------------+-------------------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
Comment:
Could you make a doctest (maybe in `sage/tests/doctest.py`) doing the
following:
1. Create a temporary file doctest.sage with some function and a doctest
testing that function. (using
[http://docs.python.org/library/tempfile.html#tempfile.NamedTemporaryFile])
2. Use `test_executable` from `sage/tests/cmdline.py` to execute `sage -t
the_temporary_file_created_in_step_1.sage`.
3. Check that this executable returned with exit status 0.
Also, it would be good to update the last section of
`doc/en/developer/doctesting.rst`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12069#comment:2>
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.