From 6b9f3782fcb5ccd7136cc021428016b0a9cc6015 Mon Sep 17 00:00:00 2001 From: Ferran Brosa Planella Date: Tue, 21 May 2024 11:22:30 +0100 Subject: [PATCH] #3959 reduce tolerances to fix macos-14 unit tests --- .../test_finite_volume/test_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_spatial_methods/test_finite_volume/test_integration.py b/tests/unit/test_spatial_methods/test_finite_volume/test_integration.py index f1908b1238..494e68cb1b 100644 --- a/tests/unit/test_spatial_methods/test_finite_volume/test_integration.py +++ b/tests/unit/test_spatial_methods/test_finite_volume/test_integration.py @@ -339,7 +339,7 @@ def test_indefinite_integral(self): phi_exact = np.ones((submesh.npts, 1)) phi_approx = int_grad_phi_disc.evaluate(None, phi_exact) phi_approx += 1 # add constant of integration - np.testing.assert_array_equal(phi_exact, phi_approx) + np.testing.assert_array_almost_equal(phi_exact, phi_approx) self.assertEqual(left_boundary_value_disc.evaluate(y=phi_exact), 0) # linear case phi_exact = submesh.nodes[:, np.newaxis] @@ -488,7 +488,7 @@ def test_backward_indefinite_integral(self): phi_exact = np.ones((submesh.npts, 1)) phi_approx = int_grad_phi_disc.evaluate(None, phi_exact) phi_approx += 1 # add constant of integration - np.testing.assert_array_equal(phi_exact, phi_approx) + np.testing.assert_array_almost_equal(phi_exact, phi_approx) self.assertEqual(right_boundary_value_disc.evaluate(y=phi_exact), 0) # linear case