[Numpy-discussion] Unit Tests failing daily for 2 months
Christopher Hanley
chanley@stsci....
Wed Feb 17 09:33:54 CST 2010
Hi,
I've been informed by our build/installation person that 3 unit tests
have been failing in the daily numpy svn installation for the last 2
months. The most recent output from the tests is as follows:
======================================================================
FAIL: Test generic loops.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_ufunc.py",
line 86, in test_generic_loops
assert_almost_equal(fone(x), fone_val, err_msg=msg)
File "/usr/stsci/pyssgdev/2.5.4/numpy/testing/utils.py", line 435,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal PyUFunc_F_F
ACTUAL: array([ 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j], dtype=complex64)
DESIRED: 1
======================================================================
FAIL: test_umath.TestComplexFunctions.test_loss_of_precision(<type
'numpy.complex64'>,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/stsci/pyssgdev/2.5.4/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py",
line 721, in check_loss_of_precision
check(x_basic, 2*eps/1e-3)
File "/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py",
line 691, in check
'arcsinh')
AssertionError: (0, 0.0010023052, 0.9987238, 'arcsinh')
======================================================================
FAIL: test_umath.TestComplexFunctions.test_precisions_consistent
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/stsci/pyssgdev/2.5.4/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py",
line 602, in test_precisions_consistent
assert_almost_equal(fcf, fcd, decimal=6, err_msg='fch-fcd %s'%f)
File "/usr/stsci/pyssgdev/2.5.4/numpy/testing/utils.py", line 435,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal fch-fcd <ufunc 'arcsin'>
ACTUAL: 2.3561945j
DESIRED: (0.66623943249251527+1.0612750619050355j)
----------------------------------------------------------------------
Ran 2512 tests in 18.753s
FAILED (KNOWNFAIL=4, failures=3)
Running unit tests for numpy
NumPy version 2.0.0.dev8116
NumPy is installed in /usr/stsci/pyssgdev/2.5.4/numpy
Python version 2.5.4 (r254:67916, Oct 26 2009, 14:36:20) [GCC 3.4.6
20060404 (Red Hat 3.4.6-11)]
nose version 0.11.1
errors:
failures:
(Test(<test_ufunc.TestUfunc testMethod=test_generic_loops>),
'Traceback (most recent call last):\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_ufunc.py", line 86,
in test_generic_loops\n assert_almost_equal(fone(x), fone_val,
err_msg=msg)\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/testing/utils.py", line 435, in
assert_almost_equal\n raise AssertionError(msg)\nAssertionError:
\nArrays are not almost equal PyUFunc_F_F\n ACTUAL: array([ 0.+0.j,
0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j], dtype=complex64)\n DESIRED: 1\n')
(Test(test_umath.TestComplexFunctions.test_loss_of_precision(<type
'numpy.complex64'>,)), 'Traceback (most recent call last):\n File
"/usr/stsci/pyssgdev/2.5.4/nose/case.py", line 183, in runTest\n
self.test(*self.arg)\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py", line 721,
in check_loss_of_precision\n check(x_basic, 2*eps/1e-3)\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py", line 691,
in check\n \'arcsinh\')\nAssertionError: (0, 0.0010023052,
0.9987238, \'arcsinh\')\n')
(Test(test_umath.TestComplexFunctions.test_precisions_consistent),
'Traceback (most recent call last):\n File
"/usr/stsci/pyssgdev/2.5.4/nose/case.py", line 183, in runTest\n
self.test(*self.arg)\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_umath.py", line 602,
in test_precisions_consistent\n assert_almost_equal(fcf, fcd,
decimal=6, err_msg=\'fch-fcd %s\'%f)\n File
"/usr/stsci/pyssgdev/2.5.4/numpy/testing/utils.py", line 435, in
assert_almost_equal\n raise AssertionError(msg)\nAssertionError:
\nArrays are not almost equal fch-fcd <ufunc \'arcsin\'>\n ACTUAL:
2.3561945j\n DESIRED: (0.66623943249251527+1.0612750619050355j)\n')
--
These failing tests are logged in Trac ticket numbers 1323, 1324, and
1325 respectively.
Is anyone else seeing these failures? Any idea what the problem may be?
It appears this problem is limited to 64-bit RHE 4 systems.
Thank you for your time and help,
Chris
--
Christopher Hanley
Senior Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338
More information about the NumPy-Discussion
mailing list