Skip to content

Commit 73b5ea5

Browse files
committed
Run test_strides_out only with Linux due to platform dependant result returned by numpy.frexp
1 parent 65f3d15 commit 73b5ea5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
has_support_aspect16,
3434
has_support_aspect64,
3535
is_intel_numpy,
36+
is_win_platform,
3637
numpy_version,
3738
)
3839
from .third_party.cupy import testing
@@ -777,6 +778,10 @@ def test_out_all_dtypes(self, dt, out1_dt, out2_dt):
777778
assert res1 is iout1
778779
assert res2 is iout2
779780

781+
@pytest.mark.skipif(
782+
is_win_platform(),
783+
reason="numpy.frexp gives different answers for NAN/INF on Windows and Linux",
784+
)
780785
@pytest.mark.parametrize("stride", [-4, -2, -1, 1, 2, 4])
781786
@pytest.mark.parametrize("dt", get_float_dtypes())
782787
def test_strides_out(self, stride, dt):

0 commit comments

Comments
 (0)