Skip to content

Commit 37342f7

Browse files
avinashpanchamukarroum
authored andcommitted
TST: Update unreliable num precision component of test_binary_arith_ops (GH37328) (pandas-dev#37380)
1 parent e2440ca commit 37342f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/computation/test_eval.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,13 @@ def check_alignment(self, result, nlhs, ghs, op):
316316
# TypeError, AttributeError: series or frame with scalar align
317317
pass
318318
else:
319-
320319
# direct numpy comparison
321320
expected = self.ne.evaluate(f"nlhs {op} ghs")
322-
tm.assert_numpy_array_equal(result.values, expected)
321+
# Update assert statement due to unreliable numerical
322+
# precision component (GH37328)
323+
# TODO: update testing code so that assert_almost_equal statement
324+
# can be replaced again by the assert_numpy_array_equal statement
325+
tm.assert_almost_equal(result.values, expected)
323326

324327
# modulus, pow, and floor division require special casing
325328

0 commit comments

Comments
 (0)