Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed test_result_type_bug_1874 to work with NumPy 2 and older on Win
  • Loading branch information
oleksandr-pavlyk committed Nov 21, 2024
commit 411dd2fdc62069783797d2bd0788315ab77cb8fd
8 changes: 6 additions & 2 deletions dpctl/tests/test_usm_ndarray_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,8 +1536,12 @@ def test_repeat_0_size():


def test_result_type_bug_1874():
dts_bool = [True, np.bool_(True)]
dts_ints = [int(1), np.int64(1)]
py_sc = True
np_sc = np.asarray([py_sc])[0]
dts_bool = [py_sc, np_sc]
py_sc = int(1)
np_sc = np.asarray([py_sc])[0]
dts_ints = [py_sc, np_sc]
dts_floats = [float(1), np.float64(1)]
dts_complexes = [complex(1), np.complex128(1)]

Expand Down