diff --git a/tests/python/examples/autodiff/test_minimization.py b/tests/python/examples/autodiff/test_minimization.py index 3ac3a57a325ec..1c57df2e2cc26 100644 --- a/tests/python/examples/autodiff/test_minimization.py +++ b/tests/python/examples/autodiff/test_minimization.py @@ -17,4 +17,4 @@ def test_minimization(): gradient_descent() for i in range(n): - assert x[i] == ti.approx(y[i], rel=1e-3) + assert x[i] == ti._testing.approx(y[i], rel=1e-3)