diff options
author | Evgeni Burovski <evgeny.burovskiy@gmail.com> | 2016-01-04 15:58:55 +0000 |
---|---|---|
committer | Evgeni Burovski <evgeny.burovskiy@gmail.com> | 2016-01-04 17:04:12 +0000 |
commit | 2edc202a2a70a17893e523dd4eb56b6668522981 (patch) | |
tree | 010348eac0065673ac0c7ee314128f6cf4c05926 /numpy/testing/utils.py | |
parent | 2fb2b66aa459d30120b9c2abd98c736cbf853cc0 (diff) | |
download | numpy-2edc202a2a70a17893e523dd4eb56b6668522981.tar.gz |
DEP: deprecate np.testing.rand
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 0c4ebe1b9..f545cd3c2 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -16,6 +16,7 @@ from tempfile import mkdtemp, mkstemp from .nosetester import import_nose from numpy.core import float32, empty, arange, array_repr, ndarray +from numpy.lib.utils import deprecate if sys.version_info[0] >= 3: from io import StringIO @@ -122,6 +123,8 @@ def gisinf(x): raise TypeError("isinf not supported for this type") return st +@deprecate(message="numpy.testing.rand is deprecated in numpy 1.11. " + "Use numpy.random.rand instead.") def rand(*args): """Returns an array of random numbers with the given shape. |