diff --git a/tests/firedrake/regression/test_interp_dual.py b/tests/firedrake/regression/test_interp_dual.py index e242951d74..73428e0cc6 100644 --- a/tests/firedrake/regression/test_interp_dual.py +++ b/tests/firedrake/regression/test_interp_dual.py @@ -38,7 +38,7 @@ def test_interp_self(V1): a = assemble(TestFunction(V1) * dx) b = assemble(TestFunction(V1) * dx) a.interpolate(a) - assert (a.dat.data_ro == b.dat.data_ro).all() + assert np.allclose(a.dat.data_ro, b.dat.data_ro) def test_assemble_interp_adjoint_tensor(mesh, V1, f1):