diff --git a/python/tests/test_combining_constraints.py b/python/tests/test_combining_constraints.py index 3197f513e9..0f245ec389 100644 --- a/python/tests/test_combining_constraints.py +++ b/python/tests/test_combining_constraints.py @@ -30,8 +30,7 @@ def test_providing_bounds_and_nonlinear_constraints(): bounds = prima_Bounds([None, 1], [None, 1]) x0 = [0, 0] res = prima_minimize(fun, x0, constraints=nlc, bounds=bounds) - #assert np.isclose(res.x[0], 5, atol=1e-6, rtol=1e-6) # Zaikun 20240501: fails on macOS-14 ARM64 - assert np.isclose(res.x[0], 5, atol=1e-3, rtol=1e-3) + assert np.isclose(res.x[0], 5, atol=1e-6, rtol=1e-6) assert np.isclose(res.x[1], 1, atol=1e-6, rtol=1e-6) assert np.isclose(res.fun, 9, atol=1e-6, rtol=1e-6) assert res.method == "cobyla" @@ -70,8 +69,7 @@ def newfun(x): # 32 bit builds of PRIMA reach the optimal solution with the same level of precision as 64 bit builds # so we lower the atol/rtol to 1e-3 so that 32 bit builds will pass. - #assert np.isclose(res.x[0], 5.5, atol=1e-3, rtol=1e-3) # Zaikun 20240501: fails on macOS-14 ARM64 - assert np.isclose(res.x[0], 5.5, atol=2e-2, rtol=2e-2) + assert np.isclose(res.x[0], 5.5, atol=1e-3, rtol=1e-3) assert np.isclose(res.x[1], 1, atol=1e-6, rtol=1e-6) assert np.isclose(res.x[2], 3.5, atol=1e-3, rtol=1e-3) assert np.isclose(res.fun, 9.5, atol=1e-3, rtol=1e-3)