#15990: Python 3 preparation: Change syntax of raise statement
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  distribution       |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:  Wilfried Luebbe    |    Reviewers:  R. Andrew Ohana
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/ohanar/raise_statement           |  79b6367ee71ecd5137081076a86b841f53730e91
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by wluebbe):

 Hi Andrew, I am 20 minutes late with the same fix. Thanks!
 Fix resolves the above failure (tested OK!).

 But my doctest {{{./sage -tp 4 --all --long >logs/sage-ptestlong-
 raise-0}}} had another failure:
 {{{
 File "src/sage/interfaces/expect.py", line 1017, in
 sage.interfaces.expect.Expect._expect_expr
 Failed example:
     print sage0.eval("dummy=gp.eval('0'); alarm(1); gp._expect_expr('1')")
 # long time
 Expected:
     Control-C pressed.  Interrupting PARI/GP interpreter. Please wait a
 few seconds...
     ...
     AlarmInterrupt:
 Got:
     Control-C pressed.  Interrupting PARI/GP interpreter. Please wait a
 few seconds...
 ---------------------------------------------------------------------------
     KeyboardInterrupt                         Traceback (most recent call
 last)
     <ipython-input-2-529203ce1422> in <module>()
     ----> 1 dummy=gp.eval('0'); alarm(Integer(Integer(1)));
 gp._expect_expr('1')
     <BLANKLINE>
     /home/wluebbe/sage-6.2.beta6/local/lib/python2.7/site-
 packages/sage/interfaces/expect.pyc in _expect_expr(self, expr, timeout)
        1050                 else:
        1051                     break
     -> 1052             raise KeyboardInterrupt(msg)
        1053
        1054     def _sendstr(self, str):
     <BLANKLINE>
     KeyboardInterrupt:
 **********************************************************************
 }}}
 The expectation {{{AlarmInterrupt:}}} was added by Jeroen in ticket:13311.

 Am I the only one to see this failure?

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