#12415: Update doctesting framework
----------------------------------------------------------------------------------------------------------------------------------------------------------------+
Reporter: robertwb
| Owner: mvngu
Type: enhancement
| Status: needs_work
Priority: major
| Milestone: sage-5.6
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, #13195, #13121,#13748,
#13899 | Stopgaps:
----------------------------------------------------------------------------------------------------------------------------------------------------------------+
Comment (by jdemeyer):
There are various new doctest errors, all of them look easy to fix. But
also two errors in the doctest framework itself:
{{{
sage -t --long devel/sage/sage/doctest/sources.py
**********************************************************************
File "devel/sage/sage/doctest/sources.py", line 177, in
sage.doctest.sources.DocTestSource._process_doc
Failed example:
doctests == manual_doctests
Expected:
True
Got:
False
**********************************************************************
File "devel/sage/sage/doctest/sources.py", line 655, in
sage.doctest.sources.FileDocTestSource._test_enough_doctests
Failed example:
for path, dirs, files in itertools.chain(os.walk(sage_loc),
os.walk(doc_loc)): # long time
path = os.path.relpath(path)
for F in files:
_, ext = os.path.splitext(F)
if ext in ('.py', '.pyx', '.sage', '.spyx', '.rst', '.tex'):
filename = os.path.join(path, F)
FDS = FileDocTestSource(filename, True, True, True, False)
FDS._test_enough_doctests(verbose=False)
Expected:
There are 3 unexpected tests being run in .../sage/doctest/parsing.py
There are 1 tests in .../sage/ext/c_lib.pyx that are not being run
There are 2 tests in .../sage/server/notebook/worksheet.py that are
not being run
There are 5 tests in .../doc/en/tutorial/interfaces.rst that are not
being run
Got:
There are 2 tests in devel/sage/sage/server/notebook/worksheet.py that
are not being run
There are 2 unexpected tests being run in
devel/sage/sage/misc/cython.py
There are 1 tests in devel/sage/sage/ext/c_lib.pyx that are not being
run
There are 3 unexpected tests being run in
devel/sage/sage/doctest/parsing.py
There are 5 tests in devel/sage/doc/en/tutorial/interfaces.rst that
are not being run
There are 1130 tests in
devel/sage/doc/output/latex/en/reference/reference.tex that are not being
run
There are 51 tests in
devel/sage/doc/output/latex/en/tutorial/SageTutorial.tex that are not
being run
There are 4 tests in
devel/sage/doc/output/latex/en/thematic_tutorials/thematic_tutorials.tex
that are not being run
There are 6 tests in
devel/sage/doc/output/latex/en/prep/prep_tutorials.tex that are not being
run
There are 2 tests in
devel/sage/doc/output/latex/en/numerical_sage/numerical_sage.tex that are
not being run
There are 15 tests in
devel/sage/doc/output/latex/en/developer/developer.tex that are not being
run
There are 16 tests in
devel/sage/doc/output/latex/en/constructions/constructions.tex that are
not being run
There are 51 tests in
devel/sage/doc/output/latex/ru/tutorial/SageTutorial_ru.tex that are not
being run
There are 51 tests in devel/sage/doc/output/latex/fr/tutorial
/tutorial-fr.tex that are not being run
There are 51 tests in devel/sage/doc/output/latex/de/tutorial
/SageTutorial-de.tex that are not being run
**********************************************************************
}}}
Also, the directory `devel/sagenb/sagenb/data` should probably not be
tested, as there are failures because of TAB characters in the !MathJax
rst documentation.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:140>
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.