Skip to content
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
shourya5 committed Mar 26, 2024
commit d24afdf0d0481686305d9bd28522fb3be8fa055e
3 changes: 2 additions & 1 deletion numba/tests/test_array_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,11 +1237,12 @@ def check(x):
check(arr)

# check some types that go via asarray
for t in [1, False, [1,], [[1, 2,],[3, 4]], (1,), (1, 2, 3)]:
for t in [1,[1,], [[1, 2,],[3, 4]], (1,), (1, 2, 3)]:
check(t)

with self.assertRaises(TypingError) as raises:
cfunc('a')

self.assertIn("The argument to np.size must be array-like",
str(raises.exception))

Expand Down