Repository navigation
Closed
Description
======================================================================
ERROR: test_umath.TestComplexFunctions.test_loss_of_precision(<class 'numpy.complex64'>,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1845, in check_loss_of_precision
check(x_series, 2.1*eps)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1814, in check
d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1)
RuntimeWarning: divide by zero encountered in true_divide
======================================================================
ERROR: test_umath.TestComplexFunctions.test_loss_of_precision(<class 'numpy.complex128'>,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1845, in check_loss_of_precision
check(x_series, 2.1*eps)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1814, in check
d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1)
RuntimeWarning: divide by zero encountered in true_divide
======================================================================
ERROR: test_umath.TestComplexFunctions.test_loss_of_precision_longcomplex
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib64/python2.7/site-packages/numpy/testing/decorators.py", line 217, in knownfailer
return f(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1892, in test_loss_of_precision_longcomplex
self.check_loss_of_precision(np.longcomplex)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1843, in check_loss_of_precision
check(x_series, 50*eps)
File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_umath.py", line 1814, in check
d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1)
RuntimeWarning: divide by zero encountered in true_divide
The tests are failing on Linux systems with glibc older than 2.18. The issue is reproducible for example on RHEL 7.2 with current numpy. It's most likely caused by inaccurate complex trigonometric functions in glibc < 2.18.
Metadata
Metadata
Assignees
Labels
No labels
Activity
BUG: Extend glibc complex trig functions blacklist to glibc < 2.18.
BUG: Extend glibc complex trig functions blacklist to glibc < 2.18.