Skip to content

Commit 368782e

Browse files
Modified test_full_dtype_inference to run on Iris Xe GPU
1 parent 7d7afaf commit 368782e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,11 +999,13 @@ def test_full_dtype_inference():
999999
assert np.issubdtype(dpt.full(10, 4).dtype, np.integer)
10001000
assert dpt.full(10, True).dtype is dpt.dtype(np.bool_)
10011001
assert np.issubdtype(dpt.full(10, 12.3).dtype, np.floating)
1002-
assert np.issubdtype(dpt.full(10, 0.3 - 2j).dtype, np.complexfloating)
1002+
cdt = dpt.full(10, 0.3 - 2j).dtype
1003+
assert np.issubdtype(cdt, np.complexfloating)
10031004

10041005
assert np.issubdtype(dpt.full(10, 12.3, dtype=int).dtype, np.integer)
10051006
assert np.issubdtype(dpt.full(10, 0.3 - 2j, dtype=int).dtype, np.integer)
1006-
assert np.issubdtype(dpt.full(10, 0.3 - 2j, dtype=float).dtype, np.floating)
1007+
rdt = np.finfo(cdt).dtype
1008+
assert np.issubdtype(dpt.full(10, 0.3 - 2j, dtype=rdt).dtype, np.floating)
10071009

10081010

10091011
def test_full_fill_array():

0 commit comments

Comments
 (0)