diff options
author | Michael McNeil Forbes <michael.forbes+numpy@gmail.com> | 2014-05-29 16:22:38 -0700 |
---|---|---|
committer | Michael McNeil Forbes <michael.forbes+numpy@gmail.com> | 2014-05-30 01:21:12 -0700 |
commit | 83c6d769e00e5ee424221244d9d2be474c1fe532 (patch) | |
tree | 924849c0b09b79df62dc48e1d8b5be6611779999 /numpy/lib/tests/test_function_base.py | |
parent | 075872dc3d35c0c3c904b046621e7876c37b179a (diff) | |
download | numpy-83c6d769e00e5ee424221244d9d2be474c1fe532.tar.gz |
BUG: Don't let meshgrid ignore unknown kwargs. Fixes #4755.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 59db23a83..cb4d6626d 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1454,6 +1454,13 @@ class TestMeshgrid(TestCase): assert_array_equal(X, np.array([[1, 2, 3]])) assert_array_equal(Y, np.array([[4], [5], [6], [7]])) + def test_invalid_arguments(self): + # Test that meshgrid complains about invalid arguments + # Regression test for issue #4755: + # https://github.com/numpy/numpy/issues/4755 + assert_raises(TypeError, meshgrid, + [1, 2, 3], [4, 5, 6, 7], indices='ij') + class TestPiecewise(TestCase): def test_simple(self): |