Skip to content
2 changes: 1 addition & 1 deletion dpnp/dpnp_iface_mathematical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ def ediff1d(ary, to_end=None, to_begin=None):
Parameters
----------
x : {dpnp.ndarray, usm_ndarray}
Input array, expected to have a real-valued data type.
Input array, expected to have a boolean or real-valued data type.
out : {None, dpnp.ndarray, usm_ndarray}, optional
Output array to populate.
Array must have the correct shape and the expected data type.
Expand Down
16 changes: 1 addition & 15 deletions dpnp/tests/test_mathematical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2240,20 +2240,11 @@ def test_out(self, func, dt_in, dt_out):
if dt_in != dt_out:
if numpy.can_cast(dt_in, dt_out, casting="same_kind"):
# NumPy allows "same_kind" casting, dpnp does not
if func != "fix" and dt_in == dpnp.bool and dt_out == dpnp.int8:
# TODO: get rid of w/a when dpctl#2030 is fixed
pass
else:
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
else:
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
assert_raises(TypeError, getattr(numpy, func), a, out=out)
else:
if func != "fix" and dt_in == dpnp.bool:
# TODO: get rid of w/a when dpctl#2030 is fixed
out = out.astype(numpy.int8)
iout = iout.astype(dpnp.int8)

expected = getattr(numpy, func)(a, out=out)
result = getattr(dpnp, func)(ia, out=iout)
assert result is iout
Expand All @@ -2279,11 +2270,6 @@ def test_out_usm_ndarray(self, func, dt):
out = numpy.empty(a.shape, dtype=dt)
ia, usm_out = dpnp.array(a), dpt.asarray(out)

if func != "fix" and dt == dpnp.bool:
# TODO: get rid of w/a when dpctl#2030 is fixed
out = out.astype(numpy.int8)
usm_out = dpt.asarray(usm_out, dtype=dpnp.int8)

expected = getattr(numpy, func)(a, out=out)
result = getattr(dpnp, func)(ia, out=usm_out)
assert result.get_array() is usm_out
Expand Down
2 changes: 0 additions & 2 deletions dpnp/tests/test_umath.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ def test_umaths(test_cases):
and is_gpu_device()
):
pytest.skip("dpctl-1652")
elif umath in ["ceil", "floor", "trunc"] and args[0].dtype == dpnp.bool:
pytest.skip("dpctl-2030")
elif (
umath == "tan"
and dpnp.issubdtype(args[0].dtype, dpnp.complexfloating)
Expand Down
Loading