#17718: Further clean-up of expect.py
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.5
      Component:  interfaces         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17718            |  d556229dd9fec47e492a3543b0815ce02b4870de
   Dependencies:  #17704             |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:3 vdelecroix]:
 > Why
 > {{{
 >  if self.silent:
 > -     return
 > +     return self.interface
 > }}}
 > If this is necessary, could you add a doctest?
 It's to allow `with StdOutContext(...) as ...` as opposed to just `with
 StdOutContext(...)`.

 So it's covered by this doctest change:
 {{{
 #!diff
 -sage: with StdOutContext(gp):
 -...       gp('1+1')
 -...
 +sage: with StdOutContext(Gp()) as g:
 +....:     g('1+1')
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17718#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to