Skip to content

Commit ba6692c

Browse files
WillAydjorisvandenbossche
authored andcommitted
Pick required fix from 2542674 pandas-dev#56709
1 parent 68cf63a commit ba6692c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/computation/test_eval.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,10 @@ def test_unary_in_array(self):
606606
)
607607
tm.assert_numpy_array_equal(result, expected)
608608

609-
@pytest.mark.parametrize("dtype", [np.float32, np.float64])
610609
@pytest.mark.parametrize("expr", ["x < -0.1", "-5 > x"])
611-
def test_float_comparison_bin_op(self, dtype, expr):
610+
def test_float_comparison_bin_op(self, float_numpy_dtype, expr):
612611
# GH 16363
613-
df = DataFrame({"x": np.array([0], dtype=dtype)})
612+
df = DataFrame({"x": np.array([0], dtype=float_numpy_dtype)})
614613
res = df.eval(expr)
615614
assert res.values == np.array([False])
616615

0 commit comments

Comments
 (0)