#12493: tol and optional in doctests don't play well together
----------------------------+-----------------------------------------------
   Reporter:  kcrisman      |          Owner:  mvngu        
       Type:  defect        |         Status:  needs_review 
   Priority:  blocker       |      Milestone:  sage-5.0     
  Component:  doctest       |       Keywords:               
Work_issues:                |       Upstream:  N/A          
   Reviewer:  Marco Streng  |         Author:  John Palmieri
     Merged:                |   Dependencies:               
----------------------------+-----------------------------------------------
Changes (by jhpalmieri):

  * status:  needs_work => needs_review


Comment:

 If you have a doctest marked "# optional - requires magma and is wrong",
 then it is ''supposed'' to only get tested if you run something like
 {{{
 sage -t --only-optional=requires,magma,and,is,wrong ...
 }}}
 Actually, there is a bug so it only gets tested if you run
 {{{
 sage -t --only-optional=requiresmagmaandiswrong ...
 }}}
 In any case, it's not surprising that your file passed doctests: the
 optional doctest wasn't run, because you didn't give the right command-
 line flags.

 When I try your file with
 {{{
 sage -t --only-optional=requiresmagmaandiswrong ...
 }}}
 I get a doctest failure.

 See #11615 for a fix to make `--only-optional=requires,magma,and,is,wrong`
 work; the patch there also allows you to omit "requires" from this list.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12493#comment:13>
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.

Reply via email to