[SciPy-Dev] More scipy.test() failures

Ralf Gommers ralf.gommers at googlemail.com
Tue Sep 6 15:14:28 EDT 2011


On Tue, Sep 6, 2011 at 8:35 PM, Nils Wagner <nwagner at iam.uni-stuttgart.de>wrote:

> Hi all,
>
> can someone reproduce the following failures
>
> I can reproduce the first and third failures, but I haven't had time to
look at them yet. If anyone wants to take a look, that would be helpful.

The second one I don't see, but it looks like the test tolerance being
slightly too high.

Ralf




> Nils
>
> >>> scipy.__version__
> '0.10.0.dev7179'
>
> ======================================================================
> FAIL: test_mio_utils.test_squeeze_element(False,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
> line 183, in runTest
>     self.test(*self.arg)
> AssertionError
>
> ======================================================================
> FAIL: test_arpack.test_complex_nonsymmetric_modes(False,
> <std-cmplx-nonsym>, 'F', 2, 'LM', None, None, <class
> 'scipy.sparse.csr.csr_matrix'>)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
> line 183, in runTest
>     self.test(*self.arg)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",
> line 196, in eval_evec
>     assert_allclose(LHS, RHS, rtol=_rtol[typ],
> atol=_atol[typ], err_msg=err)
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
> line 1213, in assert_allclose
>     verbose=verbose, header=header)
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
> line 677, in assert_array_compare
>     raise AssertionError(msg)
> AssertionError:
> Not equal to tolerance rtol=0.000238419, atol=0.000238419
> error for eigs:standard, typ=F, which=LM, sigma=None,
> mattype=csr_matrix, OPpart=None, mode=normal
> (mismatch 100.0%)
>  x: array([[-0.15612537-0.34876961j,
>  0.54372370+1.58556008j],
>        [ 0.07264681-0.29588005j,
>  0.79194915+1.30910718j],
>        [ 0.18219496+0.68975669j,  0.85219419+1.5947448j
> ],...
>  y: array([[-0.15577540-0.34831554j,
>  0.54372382+1.58555984j],
>        [ 0.07204140-0.29578942j,
>  0.79194933+1.30910718j],
>        [ 0.18207264+0.69015396j,
>  0.85219407+1.59474432j],...
>
> ======================================================================
> FAIL: Some very simple tests for chi2_contingency.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
> line 183, in runTest
>     self.test(*self.arg)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_contingency.py",
> line 67, in test_chi2_contingency_trival
>     assert_equal(p, 1.0)
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
> line 300, in assert_equal
>     raise AssertionError(msg)
> AssertionError:
> Items are not equal:
>  ACTUAL: nan
>  DESIRED: 1.0
>
> ----------------------------------------------------------------------
> Ran 5625 tests in 202.342s
>
> FAILED (KNOWNFAIL=12, SKIP=28, failures=3)
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20110906/607df527/attachment.html>


More information about the SciPy-Dev mailing list