From dd95dee5b676afc52be47df286b0fac84c4f4568 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Thu, 6 Jun 2024 23:44:31 -0700 Subject: [PATCH] test: Lower tolerance for iminuit v2.26.0+ on Apple silicon (#2514) * Lower the tolerance for the tests/test_optim.py test_optim_uncerts test to reach agreement for iminuit v2.26.0+ on Apple silicon. --- tests/test_optim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_optim.py b/tests/test_optim.py index b94b722cf8..cfd7b0890a 100644 --- a/tests/test_optim.py +++ b/tests/test_optim.py @@ -385,7 +385,9 @@ def test_optim_uncerts(backend, source, spec, mu): return_uncertainties=True, ) assert result.shape == (2, 2) - assert pytest.approx([0.26418431, 0.0]) == pyhf.tensorlib.tolist(result[:, 1]) + assert pytest.approx([0.26418431, 0.0], rel=1e-5) == pyhf.tensorlib.tolist( + result[:, 1] + ) @pytest.mark.parametrize('mu', [1.0], ids=['mu=1'])