From: Gard Spreemann Date: Thu, 18 Apr 2024 14:43:00 +0200 Subject: Allow non-zero atol in allclose in test This is to work around bug #1068647 until upstream fixes issue 618 [1]. [1] https://github.com/PythonOT/POT/issues/618 --- test/test_solvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_solvers.py b/test/test_solvers.py index 82a402d..e586b78 100644 --- a/test/test_solvers.py +++ b/test/test_solvers.py @@ -597,7 +597,7 @@ def test_solve_sample_methods(nx, method_params): sol2 = ot.solve_sample(x, x, **method_params) if method_params["method"] not in ["factored", "lowrank"]: - np.testing.assert_allclose(sol2.value, 0) + np.testing.assert_allclose(sol2.value, 0, atol=1e-5) @pytest.mark.parametrize("method_params", lst_parameters_solve_sample_NotImplemented)