Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dpnp/tests/test_mathematical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,7 @@ def test_nan_infs_complex(self):


class TestSpacing:
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
@pytest.mark.parametrize("sign", [1, -1])
@pytest.mark.parametrize("dt", get_float_dtypes())
def test_basic(self, sign, dt):
Expand Down
3 changes: 3 additions & 0 deletions dpnp/tests/test_special.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def _check_variant_func(
# calling numpy testing func, because it's more verbose
assert_allclose(x.asnumpy(), y.asnumpy(), rtol=rtol, atol=atol)

@pytest.mark.usefixtures(
"suppress_overflow_encountered_in_cast_numpy_warnings"
)
def test_erfc(self, inverse):
self._check_variant_func(
inverse,
Expand Down
4 changes: 2 additions & 2 deletions dpnp/tests/test_sycl_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ def test_array_creation_from_dpctl(copy, device):
@pytest.mark.parametrize("arr_dtype", get_all_dtypes(no_float16=True))
@pytest.mark.parametrize("shape", [tuple(), (2,), (3, 0, 1), (2, 2, 2)])
def test_from_dlpack(arr_dtype, shape, device):
X = dpnp.empty(shape=shape, dtype=arr_dtype, device=device)
X = dpnp.ones(shape=shape, dtype=arr_dtype, device=device)
Y = dpnp.from_dlpack(X)
assert_array_equal(X, Y)
assert X.__dlpack_device__() == Y.__dlpack_device__()
Expand All @@ -1101,7 +1101,7 @@ def test_from_dlpack(arr_dtype, shape, device):
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
@pytest.mark.parametrize("arr_dtype", get_all_dtypes(no_float16=True))
def test_from_dlpack_with_dpt(arr_dtype, device):
X = dpctl.tensor.empty((64,), dtype=arr_dtype, device=device)
X = dpt.ones((64,), dtype=arr_dtype, device=device)
Y = dpnp.from_dlpack(X)
assert_array_equal(X, Y)
assert isinstance(Y, dpnp.dpnp_array.dpnp_array)
Expand Down
Loading