[SciPy-user] scipy AssertionError

Travis Oliphant "oliphant." at ee.byu.edu
Fri Aug 8 13:24:17 EDT 2003


Ulrich Guenther wrote:
> On a linux installation of scipy
> I get an error when running scipy.test():
> .
> ======================================================================
> FAIL: check_basic (test_morestats.test_shapiro)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.2/site-packages/scipy/stats/tests/test_morestats.py", 
> line 37, in check_basic
>     assert_almost_equal(pw,0.52459925413131714,6)
>   File "/usr/lib/python2.2/site-packages/scipy_test/testing.py", line 349, in 
> assert_almost_equal
>     assert round(abs(desired - actual),decimal) == 0, msg
> AssertionError:
> Items are not equal:
> DESIRED: 0.52459925413131714
> ACTUAL: 0.52460002899169922
>

This is not an error,  you have an older version of scipy than the 
current CVS which is too strict in its testing.   The two numbers are 
quite close but not six decimal places.

-Travis O.





> ----------------------------------------------------------------------
> Ran 739 tests in 3.160s
> 
> FAILED (failures=1)
> <unittest.TextTestRunner instance at 0x87b9364>
> 
> Where can this come from?
> 
> My config: suse 8.2, kernel 2.4.20, python 2.2, gcc-3.3, lapack with atlas
> 
> Ulrich
> 
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list