diff --git a/tests/unit/test_expression_tree/test_operations/test_evaluate_python.py b/tests/unit/test_expression_tree/test_operations/test_evaluate_python.py index 50c9dbb744..0484af9451 100644 --- a/tests/unit/test_expression_tree/test_operations/test_evaluate_python.py +++ b/tests/unit/test_expression_tree/test_operations/test_evaluate_python.py @@ -503,7 +503,7 @@ def test_evaluator_jax(self): expr = pybamm.exp(a * b) evaluator = pybamm.EvaluatorJax(expr) result = evaluator(t=None, y=np.array([[2], [3]])) - self.assertEqual(result, np.exp(6)) + np.testing.assert_array_almost_equal(result, np.exp(6), decimal=15) # test a constant expression expr = pybamm.Scalar(2) * pybamm.Scalar(3)