#12415: Update doctesting framework
-------------------------------------------------------------------------------------------------------------------------+
Reporter: robertwb
| Owner: mvngu
Type: enhancement
| Status: needs_review
Priority: major
| Milestone: sage-5.1
Component: doctest
| Resolution:
Keywords:
| Work issues:
Report Upstream: N/A
| Reviewers: Jeroen Demeyer
Authors: David Roe, Robert Bradshaw
| Merged in:
Dependencies: #13147,#13146, #13145, #12723, #12392, #12393, #12395,
#12396, #12397, #12381, #12382, #12383, #12384 | Stopgaps:
-------------------------------------------------------------------------------------------------------------------------+
Comment (by jdemeyer):
I'm collecting some "special cases" for doctests in
[http://boxen.math.washington.edu/home/jdemeyer/doctest/] (maybe these
should eventually become "meta-doctests").
The doctesting framework seems to hang on
{{{
jdemeyer@sage:/release/merger/sage-5.1.beta5-12415$ ./sage -t
/home/jdemeyer/doctest/sigdie.py
Running doctests with ID 2012-06-26-14-12-55-fbefc7c4.
Doctesting 1 file.
}}}
While the following gives an error inside the doctesting framework (this
also used to fail before):
{{{
jdemeyer@sage:/release/merger/sage-5.1.beta5-12415$ ./sage -t
/home/jdemeyer/doctest/keyboardinterrupt.py
Running doctests with ID 2012-06-26-14-12-38-b70e54c4.
Doctesting 1 file.
sage -t /home/jdemeyer/doctest/keyboardinterrupt.py
Traceback (most recent call last):
File "/release/merger/sage-5.1.beta5-12415/local/lib/python2.7/site-
packages/sage/doctest/reporting.py", line 146, in report
ntests, runner = results
TypeError: 'NoneType' object is not iterable
------------------------------------------------------------------------
Doctests interrupted: 0/1 files tested
------------------------------------------------------------------------
Total time for all tests: 1.0 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds
}}}
The following should report an error but doesn't:
{{{
jdemeyer@sage:/release/merger/sage-5.1.beta5-12415$ ./sage -t
/home/jdemeyer/doctest/sig_on.py
Running doctests with ID 2012-06-26-14-14-08-06a01dbf.
Doctesting 1 file.
sage -t /home/jdemeyer/doctest/sig_on.py
[1 tests, 1.1 s]
------------------------------------------------------------------------
All tests passed!
------------------------------------------------------------------------
Total time for all tests: 2.1 seconds
cpu time: 0.1 seconds
cumulative wall time: 1.1 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:63>
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.