summaryrefslogtreecommitdiff
path: root/numpy/doc/basics.py
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej.certik@gmail.com>2012-11-14 15:04:55 -0800
committerOndřej Čertík <ondrej.certik@gmail.com>2012-11-14 23:10:29 -0800
commit2d841a8edc7acc3054937912b150d7a23764c41c (patch)
treed77b63d9dd12036b84944d7ff4cbe5dfe9c02cff /numpy/doc/basics.py
parent3418ffc228a8eaa414f66879301b228d4fc029e8 (diff)
downloadnumpy-2d841a8edc7acc3054937912b150d7a23764c41c.tar.gz
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
Diffstat (limited to 'numpy/doc/basics.py')
0 files changed, 0 insertions, 0 deletions