Remove a test for pad with a custom function returning a vector
@@ -226,7 +226,7 @@ class TestPadCustomFunction(unittest.TestCase):
@testing.for_all_dtypes(no_bool=True)
@testing.numpy_cupy_array_equal()
- def test_pad_via_func_modifying_inplace(self, xp, dtype):
+ def test_pad_via_func(self, xp, dtype):
def _padwithtens(vector, pad_width, iaxis, kwargs):
vector[:pad_width[0]] = 10
vector[-pad_width[1]:] = 10
@@ -234,17 +234,6 @@ class TestPadCustomFunction(unittest.TestCase):
a = xp.pad(a, 2, _padwithtens)
return a
- @testing.for_all_dtypes(no_bool=True)
- @testing.numpy_cupy_array_equal()
- def test_pad_via_func_returning_vector(self, xp, dtype):
- def _padwithtens(vector, pad_width, iaxis, kwargs):
- vector[:pad_width[0]] = 10
- vector[-pad_width[1]:] = 10
- return vector
- a = xp.arange(6, dtype=dtype).reshape(2, 3)
- a = xp.pad(a, 2, _padwithtens)
- return a
-
@testing.parameterize(
# mode='constant'
