On Fri, Jul 31, 2009 at 6:53 AM, Simon King <[email protected]> wrote:
> > On Jul 28, 3:15 am, William Stein <[email protected]> wrote: > ... > > > Do you think I should post a ticket, changing it into "Control-C > > > pressed. Interrupting interface. Please wait a few seconds"? > > > > Definitely, yes. Thanks!! But instead of not putting the interface > > name, just replace R by self.name(). > > It is ticket #6661, but so far I don't see a way to produce a doc test > for it. > > The problem is that the misleading warning message is only triggered > if _expect_expr runs and is interrupted by KeyboardInterrupt. But how > can one do so, unless in an interactive session? > Here's an example of a way to doctest something like this... D-69-91-130-10:tmp wstein$ more a.py def hi(): """ sage: sage0.eval("alarm(1); gp.eval('factor(2^997-1)')") 'Interrupting GP/PARI interpreter...KeyboardInterrupt: Ctrl-c pressed while running GP/PARI interpreter'""" --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
