#12490: Create a role :trac: to link to trac ticket in sphinx
-----------------------------+----------------------------------------------
Reporter: hivert | Owner: mvngu
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: doctest | Keywords: Sphinx trac link Cernay2012
Work_issues: | Upstream: N/A
Reviewer: Nathann Cohen | Author: Florent Hivert
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
If you copy a doctest, you should copy it completely:
{{{
sage -t "devel/sage/doc/en/developer/sage_manuals.rst"
**********************************************************************
File
"/usr/local/src/sage-5.0.beta1/devel/sage/doc/en/developer/sage_manuals.rst",
line 165:
sage: x = sage.combinat.subword.smallest_positions(w, ww); ww
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-5.0.beta1/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/usr/local/src/sage-5.0.beta1/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/usr/local/src/sage-5.0.beta1/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[2]>", line 1, in <module>
x = sage.combinat.subword.smallest_positions(w, ww); ww###line
165:
sage: x = sage.combinat.subword.smallest_positions(w, ww); ww
NameError: name 'w' is not defined
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12490#comment:9>
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.