[Numpy-svn] [numpy/numpy] 2d841a: TST: Catch possible warnings
GitHub
noreply at github.com
Mon Dec 3 20:36:08 EST 2012
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 2d841a8edc7acc3054937912b150d7a23764c41c
https://github.com/numpy/numpy/commit/2d841a8edc7acc3054937912b150d7a23764c41c
Author: Ondřej Čertík <ondrej.certik at gmail.com>
Date: 2012-11-14 (Wed, 14 Nov 2012)
Changed paths:
M numpy/ma/tests/test_core.py
Log Message:
-----------
TST: Catch possible warnings
Previously the test sometimes fails with the following error:
======================================================================
ERROR: Test a special case for var
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/numpy/ma/tests/test_core.py", line 2731, in test_varstd_specialcases
_ = method(out=mout)
File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/numpy/ma/core.py", line 4778, in std
np.power(out, 0.5, out=out, casting='unsafe')
RuntimeWarning: invalid value encountered in power
----------------------------------------------------------------------
Now we catch it, as recommended by the thread:
http://old.nabble.com/Should-abs(-nan-)-be-supported--td34389839.html
Commit: 7b75899f586ee476affbf89572d0105996725d94
https://github.com/numpy/numpy/commit/7b75899f586ee476affbf89572d0105996725d94
Author: Ondřej Čertík <ondrej.certik at gmail.com>
Date: 2012-12-03 (Mon, 03 Dec 2012)
Changed paths:
M numpy/ma/tests/test_core.py
Log Message:
-----------
Merge pull request #2745 from certik/fix_warnings
TST: Catch possible warnings
Compare: https://github.com/numpy/numpy/compare/b531ed2c4ae4...7b75899f586e
More information about the Numpy-svn
mailing list