Skip to content

Commit dd95dee

Browse files
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.
1 parent faa4ccf commit dd95dee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_optim.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ def test_optim_uncerts(backend, source, spec, mu):
385385
return_uncertainties=True,
386386
)
387387
assert result.shape == (2, 2)
388-
assert pytest.approx([0.26418431, 0.0]) == pyhf.tensorlib.tolist(result[:, 1])
388+
assert pytest.approx([0.26418431, 0.0], rel=1e-5) == pyhf.tensorlib.tolist(
389+
result[:, 1]
390+
)
389391

390392

391393
@pytest.mark.parametrize('mu', [1.0], ids=['mu=1'])

0 commit comments

Comments
 (0)