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'])