Hi William,

On Jul 31, 6:21 pm, William Stein <[email protected]> wrote:
...
> 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'"""

Yes, that is exactly what I was looking for! I didn't know "alarm".

Thank you very much!
    Simon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to