Skip to content

Commit 43a4104

Browse files
committed
Mute test with integer on Iris Xe
1 parent 3e6938b commit 43a4104

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

dpnp/tests/test_arraycreation.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
get_all_dtypes,
2121
get_array,
2222
get_float_dtypes,
23+
has_support_aspect64,
2324
is_lts_driver,
2425
is_tgllp_iris_xe,
2526
is_win_platform,
@@ -93,6 +94,15 @@ class TestLinspace:
9394
)
9495
@pytest.mark.parametrize("retstep", [True, False])
9596
def test_basic(self, start, stop, num, dt, retstep):
97+
if (
98+
not has_support_aspect64()
99+
and numpy.issubdtype(dt, numpy.integer)
100+
and start == -5
101+
and stop == 10
102+
and num == 10
103+
):
104+
pytest.skip("due to dpctl-1056")
105+
96106
if numpy.issubdtype(dt, numpy.unsignedinteger):
97107
start = abs(start)
98108
stop = abs(stop)
@@ -104,7 +114,7 @@ def test_basic(self, start, stop, num, dt, retstep):
104114
exp, exp_step = exp
105115
assert_dtype_allclose(res_step, exp_step)
106116

107-
if numpy.issubdtype(dt, dpnp.integer):
117+
if numpy.issubdtype(dt, numpy.integer):
108118
assert_allclose(res, exp, rtol=1)
109119
else:
110120
assert_dtype_allclose(res, exp)
@@ -156,6 +166,7 @@ def test_denormal_numbers(self, dt):
156166
expected = numpy.linspace(0, stop, num=10, endpoint=False, dtype=dt)
157167
assert_dtype_allclose(result, expected)
158168

169+
@pytest.mark.skipif(not has_support_aspect64(), reason="due to dpctl-1056")
159170
def test_equivalent_to_arange(self):
160171
result = dpnp.linspace(0, 35, num=36, dtype=int)
161172
expected = numpy.linspace(0, 35, num=36, dtype=int)

0 commit comments

Comments
 (0)