Skip to content

Commit

Permalink
TST: Update unreliable num precision component of test_binary_arith_o…
Browse files Browse the repository at this point in the history
…ps (GH37328) (pandas-dev#37380)
  • Loading branch information
avinashpancham authored and Kevin D Smith committed Nov 2, 2020
1 parent 5318053 commit a4fdffd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pandas/tests/computation/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4fdffd

Please sign in to comment.