diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2015-08-07 16:29:55 -0700 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2015-08-07 19:30:28 -0700 |
commit | 19a2f21583eea74ebe012f5481e19a6252383835 (patch) | |
tree | f767f71e422c2d8ce210a00fcacfbef4d99884ce /numpy/lib/tests/test_arraypad.py | |
parent | e4d4b45d26813899c66e112365896aabbb7b19fa (diff) | |
download | numpy-19a2f21583eea74ebe012f5481e19a6252383835.tar.gz |
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.
Diffstat (limited to 'numpy/lib/tests/test_arraypad.py')
-rw-r--r-- | numpy/lib/tests/test_arraypad.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |