#11615: optional doctests: clean up and document "known bug", "optional: 
requires
PKG"
-----------------------------------+----------------------------------------
   Reporter:  jhpalmieri           |          Owner:  mvngu        
       Type:  enhancement          |         Status:  needs_info   
   Priority:  minor                |      Milestone:  sage-5.0     
  Component:  doctest              |       Keywords:               
Work_issues:                       |       Upstream:  N/A          
   Reviewer:  Karl-Dieter Crisman  |         Author:  John Palmieri
     Merged:                       |   Dependencies:               
-----------------------------------+----------------------------------------
Changes (by kcrisman):

  * status:  needs_review => needs_info
  * reviewer:  => Karl-Dieter Crisman


Comment:

 I like this, and it still applies!

 Here is something to ask.   Could have two `if` statements (instead of
 some sort of `elif` or something) cause trouble if a doctest was marked as
 optional ''and'' a bug?  I've tried to make something break, but I'm not
 sure if this is the "right" behavior or not.  Here is my example.

 Adding doctest
 {{{

             sage: 2+2 # optional -- known bug
             5
 }}}
 to a file gives
 {{{

 $ ../../sage -t -only-optional=known,bug
 ../../devel/sage/sage/symbolic/expression_conversions.py
 sage -t -only-optional=known,bug
 "devel/sage/sage/symbolic/expression_conversions.py"
          [0.1 s]

 ----------------------------------------------------------------------
 All tests passed!
 Total time for all tests: 0.1 seconds
 }}}
 and the same happens with `-only-optional=bug`, but it fails (correctly)
 with `-optional`.

 Otherwise the patch seems fine, and doc looks good (''naturally''!).

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