[SciPy-user] weave test failures

Ryan Krauss ryanlists@gmail....
Sat Jun 23 09:18:51 CDT 2007


Thanks to David, my seg fault problem with cluster is fixed.  I have
two remaining test failures and they are both with weave:

======================================================================
FAIL: check_1d_3 (scipy.weave.tests.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 168, in check_1d_3
    self.generic_1d('a[-11:]')
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 135, in generic_1d
    self.generic_wrap(a,expr)
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 127, in generic_wrap
    self.generic_test(a,expr,desired)
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 123, in generic_test
    assert_array_equal(actual,desired, expr)
  File "/usr/lib/python2.5/site-packages/numpy/testing/utils.py", line
223, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/lib/python2.5/site-packages/numpy/testing/utils.py", line
215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not equal
a[-11:]
(mismatch 100.0%)
 x: array([1])
 y: array([10])

======================================================================
FAIL: check_1d_6 (scipy.weave.tests.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 174, in check_1d_6
    self.generic_1d('a[:-11]')
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 135, in generic_1d
    self.generic_wrap(a,expr)
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 127, in generic_wrap
    self.generic_test(a,expr,desired)
  File "/usr/lib/python2.5/site-packages/scipy/weave/tests/test_size_check.py",
line 123, in generic_test
    assert_array_equal(actual,desired, expr)
  File "/usr/lib/python2.5/site-packages/numpy/testing/utils.py", line
223, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/lib/python2.5/site-packages/numpy/testing/utils.py", line
215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not equal
a[:-11]
(mismatch 100.0%)
 x: array([9])
 y: array([0])

----------------------------------------------------------------------
Ran 1771 tests in 4.081s

FAILED (failures=2)
Out[3]: <unittest.TextTestRunner object at 0x963416c>


How do I fix these?

Thanks,

Ryan


More information about the SciPy-user mailing list