#12415: Update doctesting framework
---------------------------------------------------------------------------------------------------------------------------------+
Reporter: robertwb
| Owner: mvngu
Type: enhancement
| Status: needs_work
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, #11871 | Stopgaps:
---------------------------------------------------------------------------------------------------------------------------------+
Comment (by jdemeyer):
Then I get the following `make ptestlong` failures:
{{{
Running doctests with ID 2012-07-08-23-57-28-0d45df42.
Doctesting the Sage notebook.
Sorting sources by runtime so that slower doctests are run first....
Doctesting 2067 files using 6 threads.
Usage: sage -docbuild [OPTIONS] DOCUMENT (FORMAT | COMMAND)
sage-runtests: error: no such option: -p
sage -t --long devel/sage/doc/common/builder.py
Bad exit: 2
********************************************************************************
Tests run before process failed:
********************************************************************************
sage -t --long devel/sage/sage/tests/interrupt.pyx
[80 tests, 15.0 s]
}}}
{{{
sage -t --long devel/sage/sage/matrix/matrix2.pyx
[1980 tests, 24.9 s]
**********************************************************************
File "devel/sage/sage/tests/cmdline.py", line 272, in
sage.tests.cmdline.test_executable
Failed example:
out.find("All tests passed!") >= 0
Expected:
True
Got:
False
**********************************************************************
File "devel/sage/sage/tests/cmdline.py", line 277, in
sage.tests.cmdline.test_executable
Failed example:
out.find("All tests passed!") >= 0
Expected:
True
Got:
False
**********************************************************************
1 items had failures:
2 of 185 in sage.tests.cmdline.test_executable
***Test Failed*** 2 failures.
sage -t --long devel/sage/sage/tests/cmdline.py
[184 tests, 23.0 s]
}}}
{{{
**********************************************************************
File "devel/sage/sage/doctest/control.py", line 263, in
sage.doctest.control.DocTestController.add_files
Failed example:
DC = DocTestController(DD, [])
Exception raised:
Traceback (most recent call last):
File "/release/merger/sage-5.1.rc0-12415/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 590, in _run
self.execute(example, compiled, test.globs)
File "/release/merger/sage-5.1.rc0-12415/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 881, in execute
exec compiled in globs
File "<doctest
sage.doctest.control.DocTestController.add_files[2]>", line 1, in <module>
DC = DocTestController(DD, [])
File "/release/merger/sage-5.1.rc0-12415/local/lib/python2.7/site-
packages/sage/doctest/control.py", line 142, in __init__
print "Unable to open logfile at %s\nProceeding without
logging."%(self.logfile)
AttributeError: 'DocTestController' object has no attribute 'logfile'
**********************************************************************
}}}
+ errors related to #13145.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:93>
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.