On Tue, Sep 9, 2008 at 2:59 PM, John Cremona <[EMAIL PROTECTED]> wrote:
>
> Is there a difference between doctests in a .py and .pyx file?  I put
> the exact same doctest into a .py file where it runs fine, and in a
> .pyx file where it goes into an infinite recursion and then crashes.
> The function begin tested is recursive (but in the doctest example it
> does not loop endlessly!).

Is this code part of the sage library?  If yes, then there is no difference
at all between doctesting a .py or .pyx file.  In both cases, all the doctests
are stripped out and put in another pure .py file, and tested using
Python's doctest framework.

What happens when you use
    sage -t --verbose file.pyx
?

>
> I can post the code but it's based on a new patch (for trac#1951) so
> if it is not obvious what's wrong I'll post the patch anyway to trac
> so someone can help out.
>
> John
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to