From 10ce92a6e1a6ec05d25f64adc6cdb0eb03d684b3 Mon Sep 17 00:00:00 2001 From: veenstrajelmer <60435591+veenstrajelmer@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:50:21 +0200 Subject: [PATCH] chore: fixed equal comparison of float (#669) refs: #665 --- tests/dflowfm/test_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dflowfm/test_net.py b/tests/dflowfm/test_net.py index 71acbcb58..5f4bf5bcb 100644 --- a/tests/dflowfm/test_net.py +++ b/tests/dflowfm/test_net.py @@ -721,7 +721,7 @@ def test_write_netcdf_with_custom_fillvalue_correctly_writes_fillvalue(): values = mesh2d_face_z[:] data = values[:].data - assert (data[:] == fill_value).all() + assert np.allclose(data[:], fill_value) assert mesh2d_face_z._FillValue == pytest.approx(fill_value) dataset.close()