From 85a5bd80ab4922248a76ea67437b80da07193415 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Thu, 6 Jun 2024 23:44:31 -0700 Subject: [PATCH] Backport PR #2514: test: Lower tolerance 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 d235cfe27e..cc2736337f 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'])