Skip to content

Commit 58286fc

Browse files
khaledDiptorup Deb
authored andcommitted
skip dpnp.full() for large ints on windows
1 parent 80456a0 commit 58286fc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

numba_dpex/tests/dpjit_tests/dpnp/test_dpnp_full.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Tests for dpnp ndarray constructors."""
66

77
import math
8-
import platform
8+
import sys
99

1010
import dpctl
1111
import dpnp
@@ -36,6 +36,9 @@
3636
def test_dpnp_full_default(shape, fill_value):
3737
"""Test dpnp.full() with default parameters inside dpjit."""
3838

39+
if sys.platform == "win32" and fill_value == 4294967295:
40+
pytest.skip("dpnp.full() doesn't work with large integers on windows.")
41+
3942
@dpjit
4043
def func(shape, fill_value):
4144
c = dpnp.full(shape, fill_value)
@@ -54,7 +57,7 @@ def func(shape, fill_value):
5457
dummy = dpnp.full(shape, fill_value)
5558

5659
if c.dtype != dummy.dtype:
57-
if platform.system().lower() != "linux":
60+
if sys.platform != "linux":
5861
pytest.xfail(
5962
"Ddefault bit length is not as same as that of linux for {0:s}".format(
6063
str(dummy.dtype)

numba_dpex/tests/dpjit_tests/dpnp/test_dpnp_full_like.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Tests for dpnp ndarray constructors."""
66

77
import math
8-
import platform
8+
import sys
99

1010
import dpctl
1111
import dpctl.tensor as dpt
@@ -56,7 +56,7 @@ def func(x, fill_value):
5656
dummy = dpnp.full_like(a, fill_value)
5757

5858
if c.dtype != dummy.dtype:
59-
if platform.system().lower() != "linux":
59+
if sys.platform != "linux":
6060
pytest.xfail(
6161
"Ddefault bit length is not as same as that of linux for {0:s}".format(
6262
str(dummy.dtype)

0 commit comments

Comments
 (0)