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

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Jul 2 12:56:41 EDT 2008


Hi all,

If I run numpy.test()

>>> numpy.__version__
'1.2.0.dev5331'

I obtain

======================================================================
FAIL: Tests count
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_core.py", 
line 566, in test_count_func
     assert_equal(3, count(ott))
   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: 3
  DESIRED: 4

======================================================================
FAIL: Tests reshape
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_core.py", 
line 1461, in test_reshape
     assert_equal(y._mask.shape, (2,2,))
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 94, in assert_equal
     return _assert_equal_on_sequences(actual, desired, 
err_msg='')
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/testutils.py", 
line 66, in _assert_equal_on_sequences
     assert_equal(len(actual),len(desired),err_msg)
   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: 0
  DESIRED: 2

======================================================================
FAIL: Tests dot product
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_extras.py", 
line 223, in test_dot
     assert_equal(c.mask, [[1,1],[1,0]])
   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 75.0%)
  x: array([[False, False],
        [False, False]], dtype=bool)
  y: array([[1, 1],
        [1, 0]])

======================================================================
FAIL: Test of average.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_extras.py", 
line 35, in test_testAverage1
     assert_equal(average(ott,axis=0), [2.0, 0.0])
   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 50.0%)
  x: array([ 1.,  1.])
  y: array([ 2.,  1.])

======================================================================
FAIL: Test of average.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_old_ma.py", 
line 526, in test_testAverage1
     self.failUnless(eq(average(ott,axis=0), [2.0, 0.0]))
AssertionError

======================================================================
FAIL: Test count
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_old_ma.py", 
line 159, in test_xtestCount
     self.failUnless (eq(3, count(ott)))
AssertionError

----------------------------------------------------------------------
Ran 1660 tests in 12.483s

FAILED (failures=6)

  Nils



More information about the NumPy-Discussion mailing list