Skip to content

Commit 481eb62

Browse files
committed
Skip test_fill_with_numpy_scalar_ndarray
New fill implementation does not permit NumPy array values, consistent with fill_diagonal
1 parent b8dad1e commit 481eb62

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ def test_fill(self, xp, dtype):
274274
a.fill(1)
275275
return a
276276

277-
@testing.with_requires("numpy>=1.24.0")
278-
@testing.for_all_dtypes_combination(("dtype1", "dtype2"))
279-
@testing.numpy_cupy_array_equal(accept_error=ComplexWarning)
277+
@pytest.mark.skip(
278+
"asynchronous fill does not allow numpy scalar array for consistency"
279+
"with dpnp.fill_diagonal"
280+
)
280281
def test_fill_with_numpy_scalar_ndarray(self, xp, dtype1, dtype2):
281282
a = testing.shaped_arange((2, 3, 4), xp, dtype1)
282283
a.fill(numpy.ones((), dtype=dtype2))

0 commit comments

Comments
 (0)