File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def __init__(self, array_like: ArrayLike) -> None:
5959 if array_like .ndim != 1 :
6060 raise ValueError ("array_like: only 1-dim allowed" )
6161 if array_like .dtype .itemsize != 1 :
62- raise ValueError ("array_like: only byte dtype allowed" )
62+ raise ValueError ("array_like: only dtypes with itemsize=1 allowed" )
6363
6464 if not hasattr (array_like , "__cuda_array_interface__" ):
6565 # Slow copy based path for arrays that don't support the __cuda_array_interface__
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ def test_gpu_buffer_raises() -> None:
195195 gpu .Buffer (arr )
196196
197197 arr = cp .arange (12 , dtype = "int32" )
198- with pytest .raises (ValueError , match = "array_like: only byte dtype allowed " ):
198+ with pytest .raises (ValueError , match = "array_like: only dtypes " ):
199199 gpu .Buffer (arr )
200200
201201
You can’t perform that action at this time.
0 commit comments