On Apr 20, 8:26 pm, "Nicolas M. Thiery" <[email protected]>
wrote:
> On Fri, Apr 15, 2011 at 12:40:20PM +1200, Francois Bissey wrote:
> > After a small number of patch (#11156 from Nicolas M. Thiery, and 2 in
> > #9958, one of which is from my friend Steve Trogdon) we have a clear view
> > of what needs to be fixed. Test done on 4.7.alpha4 + #7377 and #9969
>
> > Aside from the chatter due to change of format and messages here is
> > what is interesting:
> > ...
> > The following tests results have to be investigated:
> > ...
> >  sage -t -long  -force_lib devel/sage-main/sage/structure/parent.pyx
> >  **********************************************************************
> >  File "/usr/share/sage/devel/sage-main/sage/structure/parent.pyx", line
> >  634:
> >      sage: CCls()._test_eq()
> >  Expected:
> >      Traceback (most recent call last):
> >      ...
> >      AssertionError: <class '__main__.CCls'> == None
> >  Got nothing
>
> This test reduces to:
>
>     sage: class CCls(Parent):
>     ...       def __eq__(self, other):
>     ...           return True
>     sage: x = CCls()
>     sage: x == None
>     True
>
> and I assume you get False instead with Python 2.7, right?
>

I have shown the whole output of the doctest failure. What was
expected
was a traceback ending up with an "AssertionError" message and I got
absolutely
nothing instead.

> I remember noticing planned changes for comparison operators, in
> particular between objects that are not in the same class. I guess
> this should be fairly harmless, but we should check out the
> details. Do you have a pointer to the appropriate PEPS?
>

No, I haven't look at any of that but I will probably have too.

I presumably found why I have 2 doctests killed and there seems
to be some randomness depending on the tester. It turns out
that an object used by llibsingular can be "garbage collected" before
we dispose of it with our own disposal mechanism. When that
happen the function id_Delete from libsingular is called to free an
object on a ring that isn't there anymore...

Francois

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to