diff --git a/tests/unit_tests/analysis/test_adaptive_localization.py b/tests/unit_tests/analysis/test_adaptive_localization.py index be6178d3661..f8e7533e25a 100644 --- a/tests/unit_tests/analysis/test_adaptive_localization.py +++ b/tests/unit_tests/analysis/test_adaptive_localization.py @@ -97,4 +97,4 @@ def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate(copy_case): prior_sample_noloc, posterior_sample_noloc = run_cli_ES_with_case("poly_no_loc.ert") # Check posterior sample without adaptive localization and with cut-off 0 are equal - assert np.array_equal(posterior_sample_loc0, posterior_sample_noloc) + assert np.allclose(posterior_sample_loc0, posterior_sample_noloc, rtol=1e-08, atol=1e-08)