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 5
5
"""Tests for dpnp ndarray constructors."""
6
6
7
7
import math
8
- import platform
8
+ import sys
9
9
10
10
import dpctl
11
11
import dpnp
36
36
def test_dpnp_full_default (shape , fill_value ):
37
37
"""Test dpnp.full() with default parameters inside dpjit."""
38
38
39
+ if sys .platform == "win32" and fill_value == 4294967295 :
40
+ pytest .skip ("dpnp.full() doesn't work with large integers on windows." )
41
+
39
42
@dpjit
40
43
def func (shape , fill_value ):
41
44
c = dpnp .full (shape , fill_value )
@@ -54,7 +57,7 @@ def func(shape, fill_value):
54
57
dummy = dpnp .full (shape , fill_value )
55
58
56
59
if c .dtype != dummy .dtype :
57
- if platform . system (). lower () != "linux" :
60
+ if sys . platform != "linux" :
58
61
pytest .xfail (
59
62
"Ddefault bit length is not as same as that of linux for {0:s}" .format (
60
63
str (dummy .dtype )
Original file line number Diff line number Diff line change 5
5
"""Tests for dpnp ndarray constructors."""
6
6
7
7
import math
8
- import platform
8
+ import sys
9
9
10
10
import dpctl
11
11
import dpctl .tensor as dpt
@@ -56,7 +56,7 @@ def func(x, fill_value):
56
56
dummy = dpnp .full_like (a , fill_value )
57
57
58
58
if c .dtype != dummy .dtype :
59
- if platform . system (). lower () != "linux" :
59
+ if sys . platform != "linux" :
60
60
pytest .xfail (
61
61
"Ddefault bit length is not as same as that of linux for {0:s}" .format (
62
62
str (dummy .dtype )
You can’t perform that action at this time.
0 commit comments