From 19a2f21583eea74ebe012f5481e19a6252383835 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 7 Aug 2015 16:29:55 -0700 Subject: Clarify signature of numpy.pad. `mode` is a required argument so just declare it as such. This does not prevent it from being passed as a keyword argument. --- numpy/lib/tests/test_arraypad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_arraypad.py') diff --git a/numpy/lib/tests/test_arraypad.py b/numpy/lib/tests/test_arraypad.py index 11d2c70b1..30ea35d55 100644 --- a/numpy/lib/tests/test_arraypad.py +++ b/numpy/lib/tests/test_arraypad.py @@ -993,7 +993,7 @@ class ValueError3(TestCase): def test_mode_not_set(self): arr = np.arange(30).reshape(5, 6) - assert_raises(ValueError, pad, arr, 4) + assert_raises(TypeError, pad, arr, 4) def test_malformed_pad_amount(self): arr = np.arange(30).reshape(5, 6) -- cgit v1.2.1