summaryrefslogtreecommitdiff
path: root/numpy/random/generator.pyx
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-05-23 07:58:47 +0300
committermattip <matti.picus@gmail.com>2019-05-23 08:22:13 +0300
commit19b48e2c655c966ff96070c14e9b51c38b35f708 (patch)
treeea82b8308fcfa588e28523a587dc4dddc2ee23fc /numpy/random/generator.pyx
parent4e6a812732b4c09b20354a47d488fbe384124827 (diff)
downloadnumpy-19b48e2c655c966ff96070c14e9b51c38b35f708.tar.gz
BUG: test, fix missing return to deprecated function
Diffstat (limited to 'numpy/random/generator.pyx')
-rw-r--r--numpy/random/generator.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/generator.pyx b/numpy/random/generator.pyx
index 331d634d6..4b3d01665 100644
--- a/numpy/random/generator.pyx
+++ b/numpy/random/generator.pyx
@@ -124,7 +124,7 @@ cdef class Generator:
Deprecated, renamed to ``random``
"""
warnings.warn("Renamed to random", RuntimeWarning)
- self.random(*args, **kwargs)
+ return self.random(*args, **kwargs)
def random(self, size=None, dtype=np.float64, out=None):