File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
numba_dpex/tests/dpjit_tests/dpnp Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 55"""Tests for dpnp ndarray constructors."""
66
77import math
8- import platform
8+ import sys
99
1010import dpctl
1111import dpnp
3636def 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 )
Original file line number Diff line number Diff line change 55"""Tests for dpnp ndarray constructors."""
66
77import math
8- import platform
8+ import sys
99
1010import dpctl
1111import 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 )
You can’t perform that action at this time.
0 commit comments