From 2edc202a2a70a17893e523dd4eb56b6668522981 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Mon, 4 Jan 2016 15:58:55 +0000 Subject: DEP: deprecate np.testing.rand --- numpy/testing/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/testing/utils.py') 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. -- cgit v1.2.1