Skip to content

Commit

Permalink
Pick required fix from 2542674 #56709
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored and jorisvandenbossche committed Oct 9, 2024
1 parent 3bb9ae6 commit c2259ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pandas/tests/computation/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,10 @@ def test_unary_in_array(self):
)
tm.assert_numpy_array_equal(result, expected)

@pytest.mark.parametrize("dtype", [np.float32, np.float64])
@pytest.mark.parametrize("expr", ["x < -0.1", "-5 > x"])
def test_float_comparison_bin_op(self, dtype, expr):
def test_float_comparison_bin_op(self, float_numpy_dtype, expr):
# GH 16363
df = DataFrame({"x": np.array([0], dtype=dtype)})
df = DataFrame({"x": np.array([0], dtype=float_numpy_dtype)})
res = df.eval(expr)
assert res.values == np.array([False])

Expand Down

0 comments on commit c2259ad

Please sign in to comment.