diff options
-rw-r--r-- | numpy/lib/function_base.py | 2 | ||||
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 39d1d1c87..4f2f7b433 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3223,7 +3223,7 @@ def meshgrid(*xi, **kwargs): If False, a view into the original arrays are returned in order to conserve memory. Default is True. Please note that ``sparse=False, copy=False`` will likely return non-contiguous arrays. - Furthermore, more than one element of a broadcasted array may refer to + Furthermore, more than one element of a broadcast array may refer to a single memory location. If you need to write to the arrays, make copies first. diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 57bfee61b..b38b39c94 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1052,10 +1052,7 @@ class TestMeshgrid(TestCase): def test_sparse(self): [X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7], sparse=True) assert_(all(X == array([[1, 2, 3]]))) - assert_(all(Y == array([[4], - [5], - [6], - [7]]))) + assert_(all(Y == array([[4], [5], [6], [7]]))) class TestPiecewise(TestCase): |