From 8b6c850cf3e6ec664705e9823014e59edc1a26e7 Mon Sep 17 00:00:00 2001 From: Chris Jordan-Squire Date: Thu, 1 Sep 2011 15:14:05 -0500 Subject: ENH: New sample function, bugs in tests fixed --- numpy/lib/tests/test_index_tricks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_index_tricks.py') diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index 2c6500a57..2c095b71b 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((4, 4)) + x = np.random.random_sample((4, 4)) r, c = diag_indices_from(x) assert_array_equal(r, np.arange(4)) assert_array_equal(c, np.arange(4)) -- cgit v1.2.1