Author ezio.melotti
Recipients ezio.melotti, rhettinger, serhiy.storchaka, terry.reedy
Date 2014-02-15.06:37:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392446258.91.0.287601600251.issue20547@psf.upfronthosting.co.za>
In-reply-to
Content
> For end users of Python, they don't have to worry much about this, but
> we as developers of core types really care whether self.assertLessThan(x, y)
> really does x < y, or x.__lt__(y), or "not y >= x", etc.

FWIW the assert methods should guarantee that the corresponding operator is used (e.g. < for assertLess), and I think this is already the case.

> After more careful reviewing this patch, I have found than some tests
> shouldn't be changed, because they produce utterly large error 
> message in case of a failure (even if resulted message is truncated, 
> as in case of assertEqual, large intermediate strings are created).

Some of these cases are already fixed, for others there are still open issues.  If you find cases that are not tracked you should report them.
History
Date User Action Args
2014-02-15 06:37:38ezio.melottisetrecipients: + ezio.melotti, rhettinger, terry.reedy, serhiy.storchaka
2014-02-15 06:37:38ezio.melottisetmessageid: <1392446258.91.0.287601600251.issue20547@psf.upfronthosting.co.za>
2014-02-15 06:37:38ezio.melottilinkissue20547 messages
2014-02-15 06:37:37ezio.melotticreate