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

Warren Weckesser warren.weckesser at enthought.com
Wed Sep 7 01:04:10 EDT 2011


On Tue, Sep 6, 2011 at 2:40 PM, Warren Weckesser <
warren.weckesser at enthought.com> wrote:

>
>
> On Tue, Sep 6, 2011 at 2:14 PM, Ralf Gommers <ralf.gommers at googlemail.com>wrote:
>
>>
>>
>> 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 third test (chi2_contingency) fails because special.chdtrc(0, 0.0)
> returns nan.  It used to return 1.  I haven't checked when the behavior
> changed.
>


For the record: the behavior changed  here:

https://github.com/scipy/scipy/commit/b2e875add019aa01b4d7ea0e10e2974b27a992fd

but that change didn't get merged into master until

https://github.com/scipy/scipy/commit/936e795df9de65602c65cc3b1b8d87de42d6fe06

Warren



> The chi2_contingency function can be changed to handle this degenerate case
> explicitly.
>
> Warren
>
>
>
>> 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
>>>
>>
>>
>> _______________________________________________
>> 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/20110907/30d40c96/attachment.html>


More information about the SciPy-Dev mailing list