Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2017-04-27.20:12:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493323962.23.0.575947649634.issue30190@psf.upfronthosting.co.za>
In-reply-to
Content
When comparing 2 numbers as "self.assertAlmostEqual(a, b, delta=1000)" the error message looks like this:

    AssertionError: 27332885 != 27391120 within 1000 delta

Especially when a and b are big numbers or differ a lot, it would be useful to see the absolute difference between the 2 numbers as in:

    AssertionError: 27332885 != 27391120 within 1000 delta (58235 difference)
History
Date User Action Args
2017-04-27 20:12:42giampaolo.rodolasetrecipients: + giampaolo.rodola
2017-04-27 20:12:42giampaolo.rodolasetmessageid: <1493323962.23.0.575947649634.issue30190@psf.upfronthosting.co.za>
2017-04-27 20:12:42giampaolo.rodolalinkissue30190 messages
2017-04-27 20:12:42giampaolo.rodolacreate