#18037: Use alarm() instead of interrupt_after_delay() in doctests
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.6
      Component:  doctest coverage   |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/use_alarm___instead_of_interrupt_after_delay___in_doctests|  
b8ed24a0fbbad472f7161f5d61706ad21edd0eba
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * status:  new => needs_review
 * commit:   => b8ed24a0fbbad472f7161f5d61706ad21edd0eba


Old description:



New description:

 For a while, `interrupt_after_delay()` was the recommended way to test
 interrupts. However, since alarms are also handled the same way by Sage,
 it's better to use `alarm()`.

 I have kept `interrupt_after_delay()` in `ecl.pyx` since that tests an ECL
 handler, which apparently doesn't support `SIGALRM`.

--

Comment:

 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=b8ed24a0fbbad472f7161f5d61706ad21edd0eba
 b8ed24a]||{{{Use alarm() instead of interrupt_after_delay()}}}||

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