Skip to content

Commit b9634dd

Browse files
committed
Mute runtimen numpy warning
1 parent da44614 commit b9634dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dpnp/tests/test_statistics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ class TestCov:
614614
@pytest.mark.parametrize(
615615
"dtype", get_all_dtypes(no_bool=True, no_none=True, no_complex=True)
616616
)
617-
def test_false_rowvar(self, dtype):
617+
def test_false_rowvar_dtype(self, dtype):
618618
a = numpy.array([[0, 2], [1, 1], [2, 0]], dtype=dtype)
619619
ia = dpnp.array(a)
620620

@@ -623,7 +623,8 @@ def test_false_rowvar(self, dtype):
623623

624624
# numpy 2.2 properly transposes 2d array when rowvar=False
625625
@with_requires("numpy>=2.2")
626-
def test_false_rowvar(self):
626+
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
627+
def test_false_rowvar_1x3(self):
627628
a = numpy.array([[0, 1, 2]])
628629
ia = dpnp.array(a)
629630

0 commit comments

Comments
 (0)