> 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?
> 
I'll leave the patch to you! Thanks for taking care of that.

Francois

This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

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