#9446: misc/trace.py doctest failure
--------------------------+-------------------------------------------------
   Reporter:  jhpalmieri  |       Owner:  mvngu   
       Type:  defect      |      Status:  new     
   Priority:  major       |   Milestone:  sage-4.6
  Component:  doctest     |    Keywords:          
     Author:              |    Upstream:  N/A     
   Reviewer:              |      Merged:          
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by mpatel):

 With
 {{{
 #!python
 def example(verbose=False, **kwargs):
     error = False
     try:
         import pexpect
         s = pexpect.spawn('sage')
         _ = s.sendline("trace('print factor(10)'); print 3+97")
         _ = s.sendline("s"); _ = s.sendline("c");
         _ = s.expect('100', timeout=kwargs['timeout'])
         t = s.before[s.before.find('-'):]
         if not t.strip().endswith('ipdb> c\r\n2 * 5'):
             raise Exception('"Got" does not match "Expected"')

     except Exception as exc:
         error = True
         if verbose:
             print exc
     return error

 def runner(n=1000, verbose=False, **kwargs):
     fail = 0
     for i in xrange(n):
         fail += example(verbose, **kwargs)
     return fail

 runner(100, timeout=1)
 }}}
 I get 13 failures on sage.math, at least some of which I may have induced
 with a simultaneous `sage -tp`.  This 4.6.alpha3 installation is under
 `/scratch`.

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