[SciPy-user] OS X test issues

George Nurser gnurser at googlemail.com
Sat Jan 20 12:50:08 CST 2007


After compiling scipy with gfortran on core duo 2, mac os x 10.4.8. I
get similar but slightly different test errors to Srinath and Vincent.

After
import scipy
scipy.test(10)

I get three test failures;

1.
FAIL: check_y_stride (scipy.linalg.tests.test_fblas.test_cgemv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linalg/tests/test_fblas.py",
line 367, in check_y_stride
    assert_array_almost_equal(desired_y,y)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 230, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 16.6666666667%)
 x: array([-1.35128093 +1.35128093j,  1.         +1.j        ,
       -8.87044144+12.87044144j,  3.         +3.j        ,
       -8.92136478+16.92136383j,  5.         +5.j        ], dtype=complex64)
 y: array([-1.35128105 +1.35128105j,  1.         +1.j        ,
       -8.87044144+12.87044144j,  3.         +3.j        ,
       -8.92136574+16.92136574j,  5.         +5.j        ], dtype=complex64)


2 & 3:
FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/lib/blas/tests/test_blas.py",
line 76, in check_dot
    assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 156, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 3.7444811487959628e-37j
 DESIRED: (-9+2j)

======================================================================
FAIL: check_dot (scipy.linalg.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linalg/tests/test_blas.py",
line 75, in check_dot
    assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 156, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 3.7444703868237568e-37j
 DESIRED: (-9+2j)


A simple dot product gives the right answer, though:
In [9]: scipy.dot([3j,-4,3.-4j],[2,3,1])
Out[9]: (-9+2j)


Do these test failures matter?

Regards, George Nurser.


More information about the SciPy-user mailing list