[issue37474] Should Py_Initialize() control the floating point mode?
Mark Dickinson
report at bugs.python.org
Tue Jul 30 05:09:02 EDT 2019
Mark Dickinson <dickinsm at gmail.com> added the comment:
> Mark: Do you think that it's worth it to convert attached fp_except.c into
> tests run by test_float, to check floating point exceptions in Python?
Sure, it wouldn't harm. I'd expect that all these cases are already being tested indirectly by some part of test_math, but direct tests are better.
Note that Python still can't/won't assume IEEE 754 floating-point, so if the tests use special values like infinities and nans, or other IEEE 754 assumptions, then they should be guarded by a suitable "skipIf" decorator.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37474>
_______________________________________
More information about the Python-bugs-list
mailing list