Skip to content

Commit 1c81577

Browse files
committed
Update tests, because NumPy doesn't support correction keyword in std/var methods
1 parent b8add38 commit 1c81577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpnp/tests/test_statistics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,8 @@ def test_correction(self):
769769
a = numpy.array([1, -1, 1, -1])
770770
ia = dpnp.array(a)
771771

772-
expected = getattr(a, self.func)(correction=1)
772+
# numpy doesn't support `correction` keyword in std/var methods
773+
expected = getattr(numpy, self.func)(a, correction=1)
773774
result = getattr(ia, self.func)(correction=1)
774775
assert_dtype_allclose(result, expected)
775776

0 commit comments

Comments
 (0)