[SciPy-user] scipy compilation succeeds, test fails

Michele Mazzucco michelemazzucco at gmail.com
Sun Apr 22 07:52:58 EDT 2007


Steve,

yes, not it fails in a different way. However I'm not very confident
in using a library whose tests fail :(.
If, as you say, these failures are well known, maybe it's the test
which is buggy ;)

Best,
Michele

On 4/22/07, Steve Lianoglou <lists.steve at arachnedesign.net> wrote:
> Hi,
>
> > I did what you said, but unfortunately it still fails (I've re-built
> > numpy as well):
>
> Yes, but in different ways now  ... at least you're not getting the
> loadmat failures in the tests anymore :-)
>
> For what it's worth, I think those `check_dot` failures have been
> around for a long time (on mac builds, at least) -- and I *think* I
> remember someone saying that it's no big deal (they fail on my
> install as well).
>
> I also have a failure on `check_simple_to_dense` but none for
> `check_*_weighted_infinite` functions (maybe those are new (?))
>
> I'm using:
>
> scipy -> 0.5.3.dev2806 (3 failures)
> numpy -> 1.0.3.dev3683 (no failures)
>
> Honestly I'm not sure what's up with the failures. Perhaps someone
> else will chime in soon enough.
>
> -steve
>
>
> >
> > ======================================================================
> > ERROR: check_simple_todense
> > (scipy.io.tests.test_mmio.test_mmio_coordinate)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/io/tests/test_mmio.py",
> > line 151, in check_simple_todense
> >     b = mmread(fn).todense()
> > AttributeError: 'numpy.ndarray' object has no attribute 'todense'
> >
> > ======================================================================
> > FAIL: check_cosine_weighted_infinite
> > (scipy.integrate.tests.test_quadpack.test_quad)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 66, in check_cosine_weighted_infinite
> >     a/(a**2 + ome**2))
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 9, in assert_quad
> >     assert abs(value-tabledValue) < err, (value, tabledValue, err)
> > AssertionError: (0.21667686818858298, 0.21663778162911612,
> > 6.5911747520269308e-10)
> >
> > ======================================================================
> > FAIL: check_sine_weighted_finite
> > (scipy.integrate.tests.test_quadpack.test_quad)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 46, in check_sine_weighted_finite
> >     (20*sin(ome)-ome*cos(ome)+ome*exp(-20))/(20**2 + ome**2))
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 9, in assert_quad
> >     assert abs(value-tabledValue) < err, (value, tabledValue, err)
> > AssertionError: (-2.0010659195591835e-06, -0.0266069863325,
> > 1.4302337979274612e-14)
> >
> > ======================================================================
> > FAIL: check_sine_weighted_infinite
> > (scipy.integrate.tests.test_quadpack.test_quad)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 56, in check_sine_weighted_infinite
> >     ome/(a**2 + ome**2))
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/integrate/tests/test_quadpack.py",
> > line 9, in assert_quad
> >     assert abs(value-tabledValue) < err, (value, tabledValue, err)
> > AssertionError: (0.12001853532338669, 0.12, 4.3115018629240958e-10)
> >
> > ======================================================================
> > FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/lib/blas/tests/test_blas.py",
> > line 76, in check_dot
> >     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/numpy/testing/utils.py",
> > line 156, in assert_almost_equal
> >     assert round(abs(desired - actual),decimal) == 0, msg
> > AssertionError:
> > Items are not equal:
> >  ACTUAL: 7.1376556515469226e-37j
> >  DESIRED: (-9+2j)
> >
> > ======================================================================
> > FAIL: check_dot (scipy.linalg.tests.test_blas.test_fblas1_simple)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/scipy/linalg/tests/test_blas.py",
> > line 75, in check_dot
> >     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> > python2.5/site-packages/numpy/testing/utils.py",
> > line 156, in assert_almost_equal
> >     assert round(abs(desired - actual),decimal) == 0, msg
> > AssertionError:
> > Items are not equal:
> >  ACTUAL: 7.2076299948304295e-37j
> >  DESIRED: (-9+2j)
> >
> > ----------------------------------------------------------------------
> > Ran 1487 tests in 5.350s
> >
> > FAILED (failures=5, errors=1)
> > <unittest.TextTestRunner object at 0x3132410>
> >
> >
> > Michele
> >
> >
> > On 4/21/07, Steve Lianoglou <lists.steve at arachnedesign.net> wrote:
> >> Hi,
> >>
> >>> do I need to rebuild numpy as well?, numpy's test is ok.
> >>
> >> I'm not really sure, but I would (it's pretty quick, anyway).
> >>
> >> Just rebuild from the latest SVN for both numpy and scipy and see
> >> what happens.
> >>
> >> -steve
> >> _______________________________________________
> >> SciPy-user mailing list
> >> SciPy-user at scipy.org
> >> http://projects.scipy.org/mailman/listinfo/scipy-user
> >>
> > _______________________________________________
> > SciPy-user mailing list
> > SciPy-user at scipy.org
> > http://projects.scipy.org/mailman/listinfo/scipy-user
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list