diff options
| author | Eric Wieser <wieser.eric@gmail.com> | 2017-04-26 17:49:29 +0100 |
|---|---|---|
| committer | Eric Wieser <wieser.eric@gmail.com> | 2017-04-26 20:56:27 +0100 |
| commit | 628f7b6c8ab806b2ded7ba6b7d802a964395ca91 (patch) | |
| tree | c246aefc480dd549e2b41627fda0cc9300d088db /numpy/lib/tests | |
| parent | 29e888365c0123a94995bbc7eb791bd791178eb5 (diff) | |
| download | numpy-628f7b6c8ab806b2ded7ba6b7d802a964395ca91.tar.gz | |
DEP: Deprecate calling the `out` argument `y`
Fixes gh-8995
Diffstat (limited to 'numpy/lib/tests')
| -rw-r--r-- | numpy/lib/tests/test_ufunclike.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_ufunclike.py b/numpy/lib/tests/test_ufunclike.py index 97d608ecf..2f671739e 100644 --- a/numpy/lib/tests/test_ufunclike.py +++ b/numpy/lib/tests/test_ufunclike.py @@ -3,7 +3,8 @@ from __future__ import division, absolute_import, print_function import numpy.core as nx import numpy.lib.ufunclike as ufl from numpy.testing import ( - run_module_suite, TestCase, assert_, assert_equal, assert_array_equal + run_module_suite, TestCase, assert_, assert_equal, assert_array_equal, + assert_warns ) @@ -61,5 +62,11 @@ class TestUfunclike(TestCase): assert_(isinstance(f, MyArray)) assert_equal(f.metadata, 'foo') + def test_deprecated(self): + # NumPy 1.13.0, 2017-04-26 + assert_warns(DeprecationWarning, ufl.fix, [1, 2], y=nx.empty(2)) + assert_warns(DeprecationWarning, ufl.isposinf, [1, 2], y=nx.empty(2)) + assert_warns(DeprecationWarning, ufl.isneginf, [1, 2], y=nx.empty(2)) + if __name__ == "__main__": run_module_suite() |
