diff --git a/dpnp/tests/test_mathematical.py b/dpnp/tests/test_mathematical.py index 760c1a0ceb2..e1f32bbd793 100644 --- a/dpnp/tests/test_mathematical.py +++ b/dpnp/tests/test_mathematical.py @@ -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): diff --git a/dpnp/tests/test_special.py b/dpnp/tests/test_special.py index 44b2d38e691..1ebb64d8da7 100644 --- a/dpnp/tests/test_special.py +++ b/dpnp/tests/test_special.py @@ -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, diff --git a/dpnp/tests/test_sycl_queue.py b/dpnp/tests/test_sycl_queue.py index d1853579036..699cd81c96f 100644 --- a/dpnp/tests/test_sycl_queue.py +++ b/dpnp/tests/test_sycl_queue.py @@ -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__() @@ -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)