Skip to content

Commit 411dd2f

Browse files
Changed test_result_type_bug_1874 to work with NumPy 2 and older on Win
1 parent 625e07a commit 411dd2f

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
@@ -1536,8 +1536,12 @@ def test_repeat_0_size():
15361536

15371537

15381538
def test_result_type_bug_1874():
1539-
dts_bool = [True, np.bool_(True)]
1540-
dts_ints = [int(1), np.int64(1)]
1539+
py_sc = True
1540+
np_sc = np.asarray([py_sc])[0]
1541+
dts_bool = [py_sc, np_sc]
1542+
py_sc = int(1)
1543+
np_sc = np.asarray([py_sc])[0]
1544+
dts_ints = [py_sc, np_sc]
15411545
dts_floats = [float(1), np.float64(1)]
15421546
dts_complexes = [complex(1), np.complex128(1)]
15431547

0 commit comments

Comments
 (0)