[issue5593] test_math.testFsum failure on release30-maint

Antoine Pitrou report at bugs.python.org
Sun Mar 29 16:15:47 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

I think it would be sufficient to invoke the addition through a helper
function, that is:

def add(x, y):
    return x + y

if add(1e16, 2.0) != add(1e16, 2.9999):
    return

Also, instead of "return", you might use the new "raise
unittest.SkipTest('some message')".

----------

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


More information about the Python-bugs-list mailing list