diff --git a/tests/unit/test_solvers/test_idaklu_solver.py b/tests/unit/test_solvers/test_idaklu_solver.py index 5c3e542378..b080f14ca5 100644 --- a/tests/unit/test_solvers/test_idaklu_solver.py +++ b/tests/unit/test_solvers/test_idaklu_solver.py @@ -496,24 +496,28 @@ def test_options(self): } solver = pybamm.IDAKLUSolver(options=options) if ( - jacobian == "none" and ( - linear_solver == "SUNLinSol_Dense" or - linear_solver == "SUNLinSol_LapackDense" - ) or - jacobian == "dense" and ( - linear_solver == "SUNLinSol_Dense" or - linear_solver == "SUNLinSol_LapackDense" - ) or - jacobian == "sparse" and ( - linear_solver != "SUNLinSol_Dense" and - linear_solver != "SUNLinSol_LapackDense" and - linear_solver != "garbage" - ) or - jacobian == "matrix-free" and ( - linear_solver != "SUNLinSol_KLU" and - linear_solver != "SUNLinSol_Dense" and - linear_solver != "SUNLinSol_LapackDense" and - linear_solver != "garbage" + jacobian == "none" + and ( + linear_solver == "SUNLinSol_Dense" + or linear_solver == "SUNLinSol_LapackDense" + ) + or jacobian == "dense" + and ( + linear_solver == "SUNLinSol_Dense" + or linear_solver == "SUNLinSol_LapackDense" + ) + or jacobian == "sparse" + and ( + linear_solver != "SUNLinSol_Dense" + and linear_solver != "SUNLinSol_LapackDense" + and linear_solver != "garbage" + ) + or jacobian == "matrix-free" + and ( + linear_solver != "SUNLinSol_KLU" + and linear_solver != "SUNLinSol_Dense" + and linear_solver != "SUNLinSol_LapackDense" + and linear_solver != "garbage" ) ): works = True