From 67f24e8f2e12d9f5b8510ffd0769b13f18f5636a Mon Sep 17 00:00:00 2001 From: Chris Jordan-Squire Date: Fri, 2 Sep 2011 12:09:48 -0500 Subject: FIX: Changed named to choice, reverted other changes. --- numpy/lib/tests/test_index_tricks.py | 2 +- numpy/lib/tests/test_io.py | 2 +- numpy/lib/tests/test_regression.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/lib/tests') diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index 2c095b71b..2c6500a57 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -193,7 +193,7 @@ def test_diag_indices(): [0, 1]]]) ) def test_diag_indices_from(): - x = np.random.random_sample((4, 4)) + x = np.random.random((4, 4)) r, c = diag_indices_from(x) assert_array_equal(r, np.arange(4)) assert_array_equal(c, np.arange(4)) diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index 6d6b10c0c..54c2ddabb 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1406,7 +1406,7 @@ M 33 21.99 def test_gzip_load(): - a = np.random.random_sample((5, 5)) + a = np.random.random((5, 5)) s = StringIO() f = gzip.GzipFile(fileobj=s, mode="w") diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py index 33685f638..c244aea87 100644 --- a/numpy/lib/tests/test_regression.py +++ b/numpy/lib/tests/test_regression.py @@ -12,7 +12,7 @@ class TestRegression(TestCase): def test_cov_parameters(self,level=rlevel): """Ticket #91""" - x = np.random.random_sample((3,3)) + x = np.random.random((3,3)) y = x.copy() np.cov(x, rowvar=1) np.cov(y, rowvar=0) -- cgit v1.2.1