[SciPy-dev] two scipy test failures...

Skip Montanaro skip at pobox.com
Mon Sep 16 16:40:12 EDT 2002


Just passing these along to make sure they stay on someone's radar screen
(should I be submitting bugs somewhere else?).  I still get a couple
precision errors when running scipy.test().  This is on Solaris using Sun's
compilers:

    FAIL: check_basic (test_morestats.test_shapiro)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/skip/local/SunOS/lib/python2.2/site-packages/scipy/stats/tests/test_morestats.py", line 37, in check_basic
        assert_almost_equal(pw,0.52459925413131714,6)
      File "/home/skip/local/SunOS/lib/python2.2/site-packages/scipy_base/testing.py", line 304, in assert_almost_equal
        assert round(abs(desired - actual),decimal) == 0, msg
    AssertionError: 
    Items are not equal:
    DESIRED: 0.524599254131
    ACTUAL: 0.524600028992

Note that I have dialed back the decimal arg from 8 to 6.

On Linux I get a different precision error:

    FAIL: check_mean (test_common.test_rand)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/skip/local/Linux/lib/python2.2/site-packages/scipy/tests/test_common.py", line 27, in check_mean
        assert_almost_equal(mn,0.5,2)
      File "/home/skip/local/Linux/lib/python2.2/site-packages/scipy_base/testing.py", line 304, in assert_almost_equal
        assert round(abs(desired - actual),decimal) == 0, msg
    AssertionError: 
    Items are not equal:
    DESIRED: 0.5
    ACTUAL: 0.505251432072

Skip



More information about the SciPy-Dev mailing list