diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-06-18 10:04:31 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-06-18 10:04:31 +0000 |
commit | 998c9c26aa8766102244c6d88403c04cd78800b2 (patch) | |
tree | c137bf61855b55471d89e177addf339e5306208e /Modules/mathmodule.c | |
parent | 9209278911c7a82407ece94ee9fdf001ba479121 (diff) | |
download | cpython-998c9c26aa8766102244c6d88403c04cd78800b2.tar.gz |
Quick fix for test_math failures on Solaris 10 buildbot. For future
reference, note that that asin(float('inf')) doesn't seem to return the
expected NaN on this platform.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 4c820c5848..c57b77a8f6 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -181,16 +181,16 @@ math_1_to_whatever(PyObject *arg, double (*func) (double), PyFPE_END_PROTECT(r); if (Py_IS_NAN(r) && !Py_IS_NAN(x)) { PyErr_SetString(PyExc_ValueError, - "math domain error (invalid argument)"); + "math domain error"); /* invalid arg */ return NULL; } if (Py_IS_INFINITY(r) && Py_IS_FINITE(x)) { if (can_overflow) PyErr_SetString(PyExc_OverflowError, - "math range error (overflow)"); + "math range error"); /* overflow */ else PyErr_SetString(PyExc_ValueError, - "math domain error (singularity)"); + "math domain error"); /* singularity */ return NULL; } if (Py_IS_FINITE(r) && errno && is_error(r)) |