Skip to content

Commit eb6fc66

Browse files
brandonwillardricardoV94
authored andcommitted
Compare single elements directly in compare_numba_and_py
1 parent e4ca40f commit eb6fc66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/link/numba/test_basic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ def set_test_value(x, v):
127127

128128

129129
def compare_shape_dtype(x, y):
130-
(x,) = x
131-
(y,) = y
132130
return x.shape == y.shape and x.dtype == y.dtype
133131

134132

@@ -286,7 +284,7 @@ def assert_fn(x, y):
286284
for j, p in zip(numba_res, py_res):
287285
assert_fn(j, p)
288286
else:
289-
assert_fn(numba_res, py_res)
287+
assert_fn(numba_res[0], py_res[0])
290288

291289
return pytensor_numba_fn, numba_res
292290

0 commit comments

Comments
 (0)