[SciPy-dev] New scipy.test() failures

Anne Archibald aarchiba at physics.mcgill.ca
Tue Nov 25 19:36:34 EST 2008


2008/11/25 Nils Wagner <nwagner at iam.uni-stuttgart.de>:

> ======================================================================
> FAIL: test_kdtree.test_distance_matrix
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/usr/local/lib64/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py",
> line 182, in runTest
>     self.test(*self.arg)
>   File
> "/usr/local/lib64/python2.5/site-packages/scipy/spatial/tests/test_kdtree.py",
> line 416, in test_distance_matrix
>     assert_equal(distance(xs[i],ys[j]),ds[i,j])
>   File
> "/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py",
> line 183, in assert_equal
>     raise AssertionError(msg)
> AssertionError:
> Items are not equal:
>  ACTUAL: 2.775628274295713
>  DESIRED: 2.7756282742957135

Should be fixed in SVN. That'll teach me to trust floating-point arithmetic.

Anne



More information about the SciPy-Dev mailing list