Skip to content

Commit 683a342

Browse files
author
Vahid Tavanashad
committed
update the test
1 parent e5d623d commit 683a342

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dpnp/tests/test_window.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import numpy
22
import pytest
3-
from numpy.testing import assert_allclose, assert_raises
3+
from numpy.testing import assert_raises
44

55
import dpnp
66

7+
from .helper import assert_dtype_allclose
8+
79

810
@pytest.mark.parametrize("func", ["hamming"])
911
@pytest.mark.parametrize(
@@ -13,7 +15,7 @@ def test_window(func, M):
1315
result = getattr(dpnp, func)(M)
1416
expected = getattr(numpy, func)(M)
1517

16-
assert_allclose(result, expected)
18+
assert_dtype_allclose(result, expected)
1719

1820

1921
@pytest.mark.parametrize("func", ["hamming"])

0 commit comments

Comments
 (0)