[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

Mark Dickinson report at bugs.python.org
Sat Dec 19 18:37:41 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

There were two incorrect tests in float_pow_testcases.patch:

+            self.assertEqualAndEqualSign(pow_op(-INF, -0.5), -0.0)
+            self.assertEqualAndEqualSign(pow_op(-INF, -2.0), -0.0)

these should both have had 0.0 in place of -0.0.  Here are corrected and 
slightly expanded tests;  I've also fixed an incorrect doctest (0**nan 
should be nan, not 0) in Lib/test/ieee754.txt.

----------
Added file: http://bugs.python.org/file15610/float_pow_testcases2.patch

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


More information about the Python-bugs-list mailing list