[issue30221] Deprecate assertNotAlmostEqual

Serhiy Storchaka report at bugs.python.org
Mon May 1 13:49:28 EDT 2017


Serhiy Storchaka added the comment:

This will save time and memory of unittest users for reading the documentation, remembering it and trying to understand in which cases assertNotAlmostEqual() can be used. This will prevent them from using unsuitable method.

I found only one case of using assertNotAlmostEqual() in the wild, and it doesn't look a proper use. Do you have any cases in which it is useful?

Recently I did have a discussion with Giampaolo about changes to assertAlmostEqual() and assertNotAlmostEqual() [1]. If assertNotAlmostEqual() didn't exist this discussion would even not started. So this would save my and Giampaolo's time.

[1] https://github.com/python/cpython/pull/1331

----------

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


More information about the Python-bugs-list mailing list