Skip to content

Commit 203d919

Browse files
committed
Fix chained condition in test
1 parent a8cc03c commit 203d919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tensor/test_math_scipy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ def test_unused_grad_loop_opt(self, wrt):
10751075
mode = get_default_mode().including("local_useless_2f1grad_loop")
10761076
f_grad = function([a1, a2, b1, z], hyp2f1_grad, mode=mode)
10771077

1078-
if len(wrt) == 3 and config.mode == "FAST_COMPILE" or not config.cxx:
1078+
if len(wrt) == 3 and (config.mode == "FAST_COMPILE" or not config.cxx):
10791079
# In this case we actually get two scalar_loops, because the merged one can't be executed in Python
10801080
[scalar_loop_op1, scalar_loop_op2] = [
10811081
node.op.scalar_op

0 commit comments

Comments
 (0)