[SciPy-User] scipy.test() failures

Travis Oliphant travis@continuum...
Thu Jun 14 04:59:09 CDT 2012


On Jun 12, 2012, at 2:11 PM, Nils Wagner wrote:

> NumPy version 1.7.0.dev-cf72f82
> SciPy version 0.11.0.dev-5655bc9
> Python version 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]
> openSUSE 12.1 x86_64 GNU/Linux
> 
> ERROR: Failure: DeprecationWarning (
> The scipy.maxentropy module is deprecated in scipy 0.10, and scheduled to be
> removed in 0.11.
> 
> If you are using some of the functionality in this module and are of the
> opinion that it should be kept or moved somewhere - or you are even interested
> to maintain/improve this whole module - please ask on the scipy-dev mailing
> list.
> 
> The logsumexp function has already been moved to scipy.misc.)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/home/nwagner/local/lib64/python2.7/site-packages/scipy/maxentropy/__init__.py", line 19, in <module>
>     DeprecationWarning)
> DeprecationWarning: 
> The scipy.maxentropy module is deprecated in scipy 0.10, and scheduled to be
> removed in 0.11.
> 
> If you are using some of the functionality in this module and are of the
> opinion that it should be kept or moved somewhere - or you are even interested
> to maintain/improve this whole module - please ask on the scipy-dev mailing
> list.
> 
> The logsumexp function has already been moved to scipy.misc.
> 
> ======================================================================
> FAIL: test_improvement (test_quadpack.TestCtypesQuad)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/nwagner/local/lib64/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
>     return f(*args, **kwargs)
>   File "/home/nwagner/local/lib64/python2.7/site-packages/scipy/integrate/tests/test_quadpack.py", line 53, in test_improvement
>     assert_(fast < 0.5*slow, (fast, slow))
>   File "/home/nwagner/local/lib64/python2.7/site-packages/numpy/testing/utils.py", line 34, in assert_
>     raise AssertionError(msg)
> AssertionError: (0.004730939865112305, 0.009073019027709961)
> 

It looks like the test is too aggressive for this system.   The code is faster, just not fast enough for the test..  I should change the test to just being perhaps 80% of slow or even just asking it to be < slow .   

Timing tests are a bit problematic as different run-times act so differently.   Perhaps there is another way to figure out if the faster path is getting called.   

I would just deactivate the test for now. 

-Travis




> ----------------------------------------------------------------------
> Ran 5481 tests in 177.105s
> 
> FAILED (KNOWNFAIL=12, SKIP=28, errors=1, failures=1)
> 
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list