diff --git a/dpnp/tests/test_strides.py b/dpnp/tests/test_strides.py index 712bc7c91df3..6c8344fa15c6 100644 --- a/dpnp/tests/test_strides.py +++ b/dpnp/tests/test_strides.py @@ -182,6 +182,7 @@ def test_erf(dtype): assert_dtype_allclose(result, expected) +@pytest.mark.filterwarnings("ignore::RuntimeWarning") @pytest.mark.parametrize("dtype", get_float_complex_dtypes()) @pytest.mark.parametrize("stride", [2, -1, -3]) def test_reciprocal(dtype, stride): diff --git a/dpnp/tests/test_umath.py b/dpnp/tests/test_umath.py index 0039d74789f7..6284950ae94e 100644 --- a/dpnp/tests/test_umath.py +++ b/dpnp/tests/test_umath.py @@ -445,7 +445,7 @@ def test_large_values(self, dtype): class TestReciprocal: - @pytest.mark.usefixtures("suppress_divide_numpy_warnings") + @pytest.mark.filterwarnings("ignore::RuntimeWarning") @pytest.mark.parametrize("dtype", get_float_complex_dtypes()) def test_reciprocal(self, dtype): a = generate_random_numpy_array(10, dtype) diff --git a/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py b/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py index a20b287c18b4..3925b5974245 100644 --- a/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py +++ b/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py @@ -134,6 +134,7 @@ def test_raises_with_numpy_input(self): ) class TestArithmeticUnary: + @pytest.mark.filterwarnings("ignore::RuntimeWarning") @testing.numpy_cupy_allclose(atol=1e-5, type_check=has_support_aspect64()) def test_unary(self, xp): arg1 = self.arg1 diff --git a/dpnp/tests/third_party/cupy/math_tests/test_misc.py b/dpnp/tests/third_party/cupy/math_tests/test_misc.py index 4542c51de33e..c04a4cbc306d 100644 --- a/dpnp/tests/third_party/cupy/math_tests/test_misc.py +++ b/dpnp/tests/third_party/cupy/math_tests/test_misc.py @@ -250,6 +250,7 @@ def test_nan_to_num_for_old_numpy(self): def test_nan_to_num_negative_for_old_numpy(self): self.check_unary_negative("nan_to_num", no_bool=True) + @pytest.mark.filterwarnings("ignore::RuntimeWarning") def test_nan_to_num_inf(self): self.check_unary_inf("nan_to_num") @@ -260,6 +261,7 @@ def test_nan_to_num_nan(self): def test_nan_to_num_scalar_nan(self, xp): return xp.nan_to_num(xp.array(xp.nan)) + @pytest.mark.filterwarnings("ignore::RuntimeWarning") def test_nan_to_num_inf_nan(self): self.check_unary_inf_nan("nan_to_num")