diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-03-16 10:06:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-16 10:06:39 -0700 |
commit | 9a35ab439809270dfb582ed1ddf0376512ec4005 (patch) | |
tree | 763e0904dd9e2c370596a40c049e82b3298560a3 /numpy/lib/tests/test_arraypad.py | |
parent | 0764929543c85decde9d664367dbf7d8f137fe1f (diff) | |
parent | df286d00bf6236f0158fc2cedd91dd3905fc05ca (diff) | |
download | numpy-9a35ab439809270dfb582ed1ddf0376512ec4005.tar.gz |
Merge branch 'master' into deprecate-float-order
Diffstat (limited to 'numpy/lib/tests/test_arraypad.py')
-rw-r--r-- | numpy/lib/tests/test_arraypad.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_arraypad.py b/numpy/lib/tests/test_arraypad.py index a9030e737..b7393294a 100644 --- a/numpy/lib/tests/test_arraypad.py +++ b/numpy/lib/tests/test_arraypad.py @@ -1249,10 +1249,9 @@ def test_kwargs(mode): np.pad([1, 2, 3], 1, mode, **{key: value}) -def test_missing_mode(): - match = "missing 1 required positional argument: 'mode'" - with pytest.raises(TypeError, match=match): - np.pad(np.ones((5, 6)), 4) +def test_constant_zero_default(): + arr = np.array([1, 1]) + assert_array_equal(np.pad(arr, 2), [0, 0, 1, 1, 0, 0]) @pytest.mark.parametrize("mode", _all_modes.keys()) |