diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index a4f1b1828bbc6..728ffc6f85ba4 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -316,10 +316,13 @@ def check_alignment(self, result, nlhs, ghs, op): # TypeError, AttributeError: series or frame with scalar align pass else: - # direct numpy comparison expected = self.ne.evaluate(f"nlhs {op} ghs") - tm.assert_numpy_array_equal(result.values, expected) + # Update assert statement due to unreliable numerical + # precision component (GH37328) + # TODO: update testing code so that assert_almost_equal statement + # can be replaced again by the assert_numpy_array_equal statement + tm.assert_almost_equal(result.values, expected) # modulus, pow, and floor division require special casing