#10295: Upgrading pexpect
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:  was
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  interfaces         |   Resolution:
       Keywords:  pexpect upgrade    |    Merged in:
        Authors:  François Bissey,   |    Reviewers:  Jeroen Demeyer
  Bill Page                          |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  fe1066154892173d17bed1892886dc8148fa33f5
  u/fbissey/pexpect3.3               |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jhpalmieri):

 I get some failures:
 {{{
 ----------------------------------------------------------------------
 sage -t --long src/sage/interfaces/gap.py  # 14 doctests failed
 sage -t --long src/sage/interfaces/expect.py  # Timed out
 ----------------------------------------------------------------------
 }}}
 For the first one, there are lots of errors of this sort:
 {{{
 sage -t --long src/sage/interfaces/gap.py
 **********************************************************************
 File "src/sage/interfaces/gap.py", line 717, in
 sage.interfaces.gap.Gap_generic._eval_line
 Failed example:
     a
 Expected:
     3
 Got:
     ** Gap crashed or quit executing 'Print($sage1);' **
     Restarting Gap and trying again
     <repr(<sage.interfaces.gap.GapElement at 0x10cd07870>) failed:
 RuntimeError: Gap produced error output
     Error, Variable: '$sage1' must have a value
     <BLANKLINE>
        executing Print($sage1);>
 **********************************************************************
 File "src/sage/interfaces/gap.py", line 779, in
 sage.interfaces.gap.Gap_generic.unbind
 Failed example:
     gap.set('x', '2')
 Expected nothing
 Got:
     ** Gap crashed or quit executing 'x:=2;;' **
     Restarting Gap and trying again
 **********************************************************************
 }}}
 For the second one, the start of that part of the log looks like this:
 {{{
 **********************************************************************
 File "src/sage/interfaces/expect.py", line 708, in
 sage.interfaces.expect.Expect._eval_line_using_file
 Failed example:
     singular('a')
 Exception raised:
     Traceback (most recent call last):
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496\
 , in _run
         self.compile_and_execute(example, compiler, test.globs)
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858\
 , in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.interfaces.expect.Expect._eval_line_using_file[4]>", line 1, in
 <module>
         singular('a')
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 788, in __call__
         return SingularElement(self, type, x, False)
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 1266, in __init__
         raise_(TypeError, x, sys.exc_info()[2])
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 1261, in __init__
         self._name = parent._create( value, type)
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 749, in _create
         self.set(type, name, value)
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 692, in set
         self.eval(cmd)
       File
 "/Users/jpalmier/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site-
 packages/sage/interfaces/singular.py", lin\
 e 650, in eval
         raise SingularError('Singular error:\n%s'%s)
     TypeError: Singular error:
        ? `a` is undefined
        ? error occurred in or before STDIN line 12: `def sage15=a;`
 **********************************************************************
 File "src/sage/interfaces/expect.py", line 710, in
 sage.interfaces.expect.Expect._eval_line_using_file
 Failed example:
     singular.eval('quit;')
 Expected:
     ''
 Got:
     Singular crashed -- automatically restarting.
     ''
 **********************************************************************
 File "src/sage/interfaces/expect.py", line 721, in
 sage.interfaces.expect.Expect._eval_line_using_file
 Failed example:
     singular(3)
 Expected:
     Singular crashed -- automatically restarting.
     3
 Got:
     Singular crashed -- automatically restarting.
     Singular crashed -- automatically restarting.
     Singular crashed -- automatically restarting.
     <repr(<sage.interfaces.singular.SingularElement at 0x11ac13fa0>)
 failed: AttributeError: 'NoneType' object has no attri\
 bute 'group'>
 **********************************************************************
 File "src/sage/interfaces/expect.py", line 800, in
 sage.interfaces.expect.Expect._eval_line
 Failed example:
     singular._eval_line('def a=3;')
 Expected:
     ''
 Got:
     Singular crashed -- automatically restarting.
     ''
 **********************************************************************
 }}}
 This is on OS X 10.10, Sage built from scratch.

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