On Thu, Apr 21, 2011 at 10:05:58PM +1200, Francois Bissey wrote:
>    > Does hitting Enter again not do it?
>    > David
>    >
> 
>    No! huuuuuu it didn't earlier this afternoon for some reason.
>    I had an ipython message. Never mind so  I do what Nicolas asked:
>    sage: class CCls(Parent):
>    ....:     def __eq__(self, other):
>    ....:         return True
>    ....:    
>    sage: x = CCls()         
>    sage: x == None
>    True
> 
>    So I still get True and not false as he expected.

Ah ah, interesting. So this is the behavior of:

        tester.assertNotEqual(self, None)

inside _test_eq which has changed. Well, I guess we can just replace
that test by:

        tester.assertFalse(self == None)

which will be consistent with how we run the inequality tests after
anyway. I write the patch and you review it, or the converse?

Cheers,
                                Nicolas
--
Nicolas M. Thiéry "Isil" <[email protected]>
http://Nicolas.Thiery.name/

-- 
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