Skip to content

Commit 6a4b1fa

Browse files
committed
Update tests for nan functions to improve coverage
1 parent 1c81577 commit 6a4b1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/tests/test_nanfunctions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def test_mean_keyword(self, dtype, axis, keepdims):
754754

755755
@with_requires("numpy>=2.0")
756756
def test_correction(self):
757-
a = numpy.array([127, 39, 93, 87, 46])
757+
a = numpy.array([127, numpy.nan, numpy.nan, 39, 93, 87, numpy.nan, 46])
758758
ia = dpnp.array(a)
759759

760760
expected = getattr(numpy, self.func)(a, correction=0.5)
@@ -764,7 +764,7 @@ def test_correction(self):
764764
@with_requires("numpy>=2.0")
765765
@pytest.mark.parametrize("xp", [dpnp, numpy])
766766
def test_both_ddof_correction_are_set(self, xp):
767-
a = xp.array(5)
767+
a = xp.array([5, xp.nan, -2])
768768

769769
err_msg = "ddof and correction can't be provided simultaneously."
770770

0 commit comments

Comments
 (0)