Skip to content

Commit dc1887e

Browse files
Changed test_result_type_bug_1874 to work with NumPy 2 and older on Win
1 parent 6c4211c commit dc1887e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dpctl/tests/test_usm_ndarray_manipulation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,8 +1560,12 @@ def test_repeat_0_size():
15601560

15611561

15621562
def test_result_type_bug_1874():
1563-
dts_bool = [True, np.bool_(True)]
1564-
dts_ints = [int(1), np.int64(1)]
1563+
py_sc = True
1564+
np_sc = np.asarray([py_sc])[0]
1565+
dts_bool = [py_sc, np_sc]
1566+
py_sc = int(1)
1567+
np_sc = np.asarray([py_sc])[0]
1568+
dts_ints = [py_sc, np_sc]
15651569
dts_floats = [float(1), np.float64(1)]
15661570
dts_complexes = [complex(1), np.complex128(1)]
15671571

0 commit comments

Comments
 (0)