diff --git a/tests/test_eclab_mpr.py b/tests/test_eclab_mpr.py index 859ba156..869974c7 100644 --- a/tests/test_eclab_mpr.py +++ b/tests/test_eclab_mpr.py @@ -35,4 +35,4 @@ def test_eclab_mpr(infile, datadir): print(f"{ret=}") with open(outfile, "wb") as out: pickle.dump(ret, out, 5) - xr.testing.assert_equal(ret, ref) + xr.testing.assert_allclose(ret, ref) diff --git a/tests/test_eclab_mpt.py b/tests/test_eclab_mpt.py index b3d98eff..78506100 100644 --- a/tests/test_eclab_mpt.py +++ b/tests/test_eclab_mpt.py @@ -54,7 +54,7 @@ def test_eclab_mpt_locale(afile, bfile, datadir): kwargs = dict(timezone="Europe/Berlin", encoding="windows-1252") aret = extract(fn=afile, locale="en_US", **kwargs) bret = extract(fn=bfile, locale="de_DE", **kwargs) - xr.testing.assert_equal(aret, bret) + xr.testing.assert_allclose(aret, bret) @pytest.mark.parametrize(