[issue27198] Adding an assertClose() method to unittest.TestCase

Gregory P. Smith report at bugs.python.org
Sat Mar 19 21:09:10 EDT 2022


Gregory P. Smith <greg at krypto.org> added the comment:

I agree with the decision, assertAlmostEqual is where the feature belongs.

>From a practical point of view I suspect a lot of people who want this in the wider world today use just `assert math.isclose(...)` despite the less useful error message.

----------
nosy: +gregory.p.smith
status: pending -> open
versions: +Python 3.11 -Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27198>
_______________________________________


More information about the Python-bugs-list mailing list