[Numpy-discussion] New numpy.test() failures

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Jul 2 12:41:56 CDT 2008


> 
> This shows up on all the 64-bit buildbots also. But the 
>32 bit Mac still
> works.
> 
> Chuck

There are also new test failures in scipy

======================================================================
FAIL: Tests the confidence intervals of the trimmed mean.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/stats/tests/test_mmorestats.py", 
line 35, in test_trimmedmeanci
     assert_almost_equal(ms.trimmed_mean(data,0.2), 596.2, 
1)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 158, in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
  ACTUAL: 600.26666666666665
  DESIRED: 596.20000000000005

======================================================================
FAIL: Tests trimming
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/stats/tests/test_mstats.py", 
line 213, in test_trim
     [None,1,2,3,4,5,6,7,None,None])
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 111, in assert_equal
     return assert_array_equal(actual, desired, err_msg)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 177, in assert_array_equal
     header='Arrays are not equal')
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 171, in assert_array_compare
     verbose=verbose, header=header)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 240, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not equal

(mismatch 30.0%)
  x: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
  y: array([None, 1, 2, 3, 4, 5, 6, 7, None, None], 
dtype=object)

======================================================================
FAIL: Tests trimming.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/stats/tests/test_mstats.py", 
line 240, in test_trim_old
     assert_equal(mstats.trimboth(x).count(), 60)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 97, in assert_equal
     assert desired == actual, msg
AssertionError:
Items are not equal:
  ACTUAL: 100
  DESIRED: 60

======================================================================
FAIL: Tests the trimmed mean.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/stats/tests/test_mstats.py", 
line 255, in test_trimmedmean
     assert_almost_equal(mstats.trimmed_mean(data,0.1), 
343, 0)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 145, in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
  ACTUAL: 448.10526315789474
  DESIRED: 343
  
Nils


More information about the Numpy-discussion mailing list