#12991: Don't doctest autogenerated rst files
-------------------------------+--------------------------------------------
       Reporter:  jhpalmieri   |         Owner:  mvngu       
           Type:  enhancement  |        Status:  needs_review
       Priority:  minor        |     Milestone:  sage-5.1    
      Component:  doctest      |    Resolution:              
       Keywords:               |   Work issues:              
Report Upstream:  N/A          |     Reviewers:              
        Authors:               |     Merged in:              
   Dependencies:               |      Stopgaps:              
-------------------------------+--------------------------------------------
Changes (by jhpalmieri):

  * status:  new => needs_review


Comment:

 For the first approach, apply a patch like this to `SAGE_ROOT/local/bin`:
 {{{
 #!diff
 diff --git a/sage-ptest b/sage-ptest
 --- a/sage-ptest
 +++ b/sage-ptest
 @@ -133,9 +133,11 @@ def skip(F):
          sys.stdout.flush()
          printmutex.release()
          return True
 +    TEXT = open(G).read()
      filenm = os.path.split(F)[1]
      if (filenm[0] == '.' or (os.path.sep + '.' in G.lstrip(os.path.sep +
 '.'))
 -        or 'nodoctest' in open(G).read()[:50]):
 +        or 'nodoctest' in TEXT[:50]
 +        or '\n.. This file has been autogenerated.\n' in TEXT):
          return True
      if G.find(os.path.join('doc', 'output')) != -1:
          return True
 }}}

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