[issue30190] unittest's assertAlmostEqual improved error message

Giampaolo Rodola' report at bugs.python.org
Fri Apr 28 12:17:48 EDT 2017


Giampaolo Rodola' added the comment:

Thanks for chiming in.

> Is it worth to output a difference when the delta argument is not passed?

Yes, probably. I will change that.

> Is it worth to output a signed difference rather than an absolute value?

Mmmm probably not IMHO. Personally I never care about the position of left and right arguments. I just want to check whether a and b are almost equal.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30190>
_______________________________________


More information about the Python-bugs-list mailing list