Skip to content

Commit fc9e302

Browse files
committed
use lambda function
1 parent 96905cd commit fc9e302

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: tests/test_Wrappers.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ def clean(self):
6363
assert Ainv.solver.A is None
6464

6565
def test_iterative_deprecations():
66-
def iterative_solver(A, x):
67-
return x
6866

6967
with pytest.warns(FutureWarning, match="check_accuracy and accuracy_tol were unused.*"):
70-
wrap_iterative(iterative_solver, check_accuracy=True)
68+
wrap_iterative(lambda a, x: x, check_accuracy=True)
7169

7270
with pytest.warns(FutureWarning, match="check_accuracy and accuracy_tol were unused.*"):
73-
wrap_iterative(iterative_solver, accuracy_tol=1E-3)
71+
wrap_iterative(lambda a, x: x, accuracy_tol=1E-3)
7472

7573
def test_non_scipy_iterative():
7674
def iterative_solver(A, x):

0 commit comments

Comments
 (0)