Skip to content

Commit abc7ebf

Browse files
committed
Fix test_bitwise_left_shift
1 parent 440094c commit abc7ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_operators_and_elementwise_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def test_bitwise_left_shift(ctx, data):
846846

847847
binary_param_assert_dtype(ctx, left, right, res)
848848
binary_param_assert_shape(ctx, left, right, res)
849-
nbits = res.dtype
849+
nbits = dh.dtype_nbits[res.dtype]
850850
binary_param_assert_against_refimpl(
851851
ctx, left, right, res, "<<", lambda l, r: l << r if r < nbits else 0
852852
)

0 commit comments

Comments
 (0)