#8699: allow doctest coverage script to handle triple single quotes
---------------------------------------------+------------------------------
   Reporter:  mvngu                          |       Owner:  tbd       
       Type:  enhancement                    |      Status:  needs_work
   Priority:  minor                          |   Milestone:  sage-4.4  
  Component:  doctest                        |    Keywords:            
     Author:  Minh Van Nguyen                |    Upstream:  N/A       
   Reviewer:                                 |      Merged:            
Work_issues:  Slight bug in implementation.  |  
---------------------------------------------+------------------------------

Comment(by timdumol):

 I realize that test case is wrong. Here's what I meant:

 Inserting this:

 {{{
 #!python

 def foo():
    '''
    foobarbaz
    """

    """
    [..]

    EXAMPLES::

       sage: print 5
       5
    '''
    pass
 }}}

 into a file will result in a missing doctests warning, despite the fact
 that it does have a doctest. This is because the first triple single quote
 is matched with the first triple double quote, instead of the second
 triple single quote. It may be an extremely unlikely test case, but it is
 probably better to get this right now rather than puzzle over it in the
 far future.

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

Reply via email to