Skip to content

Commit 024956a

Browse files
authoredNov 20, 2024··
add a code comment
1 parent 0f59c21 commit 024956a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎array_api_tests/test_creation_functions.py

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def scalar_eq(s1: Scalar, s2: Scalar) -> bool:
263263
data=st.data(),
264264
)
265265
def test_asarray_arrays(shape, dtypes, data):
266+
# generate arrays only since we draw the copy= kwd below (and np.asarray(scalar, copy=False) error out)
266267
x = data.draw(hh.arrays_no_scalars(dtype=dtypes.input_dtype, shape=shape), label="x")
267268
dtypes_strat = st.just(dtypes.input_dtype)
268269
if dtypes.input_dtype == dtypes.result_dtype:

0 commit comments

Comments
 (0)
Please sign in to comment.