Skip to content

Commit 30bb7db

Browse files
author
Vahid Tavanashad
committed
suppress warning
1 parent 381aec8 commit 30bb7db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_arraypad.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,12 @@ def test_same_prepend_append(self, mode):
336336
result = dpnp.pad(a, (1, 1), mode)
337337
assert_equal(result[0], result[-1])
338338

339+
@pytest.mark.usefixtures(
340+
"suppress_invalid_numpy_warnings",
341+
"suppress_mean_empty_slice_numpy_warnings",
342+
)
339343
@pytest.mark.parametrize("mode", ["mean", "median"])
340-
def test_zero_stat_length_valid(self):
344+
def test_zero_stat_length_valid(self, mode):
341345
a_np = numpy.array([1.0, 2.0])
342346
a_dp = dpnp.array(a_np)
343347
expected = numpy.pad(a_np, (1, 2), mode, stat_length=0)

0 commit comments

Comments
 (0)