@@ -399,6 +399,7 @@ def test_optim_uncerts_minuit(backend, source, spec, mu):
399399
400400@pytest .mark .parametrize ('mu' , [1.0 ], ids = ['mu=1' ])
401401@pytest .mark .skip_numpy
402+ @pytest .mark .skip_numpy_minuit
402403def test_optim_uncerts_autodiff (backend , source , spec , mu ):
403404 pdf = pyhf .Model (spec )
404405 data = source ['bindata' ]['data' ] + pdf .config .auxdata
@@ -421,8 +422,10 @@ def test_optim_uncerts_autodiff(backend, source, spec, mu):
421422 return_uncertainties = True ,
422423 )
423424 assert result .shape == (2 , 2 )
424- # TODO: add proper numerical test for autodiff uncerts (does not match minuit at all)
425- # assert pytest.approx([0.26418431, 0.0]) == pyhf.tensorlib.tolist(result[:, 1])
425+ # TODO: this does not match minuit at all (0.26418431) -- is that correct here?
426+ assert pytest .approx ([0.6693815171034548 , 0.0 ]) == pyhf .tensorlib .tolist (
427+ result [:, 1 ]
428+ )
426429
427430
428431@pytest .mark .parametrize ('mu' , [1.0 ], ids = ['mu=1' ])
@@ -458,6 +461,7 @@ def test_optim_correlations_minuit(backend, source, spec, mu):
458461
459462@pytest .mark .parametrize ('mu' , [1.0 ], ids = ['mu=1' ])
460463@pytest .mark .skip_numpy
464+ @pytest .mark .skip_numpy_minuit
461465def test_optim_correlations_autodiff (backend , source , spec , mu ):
462466 pdf = pyhf .Model (spec )
463467 data = source ['bindata' ]['data' ] + pdf .config .auxdata
0 commit comments