Skip to content

Commit 5fcbef5

Browse files
authored
TST: xfail(strict=False) flaky numexpr test (#46796)
1 parent ec75436 commit 5fcbef5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pandas/tests/computation/test_eval.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,21 @@ def test_basic_frame_series_alignment(
833833
)
834834
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
835835
def test_basic_series_frame_alignment(
836-
self, engine, parser, index_name, r_idx_type, c_idx_type
836+
self, request, engine, parser, index_name, r_idx_type, c_idx_type
837837
):
838+
if (
839+
engine == "numexpr"
840+
and parser == "pandas"
841+
and index_name == "index"
842+
and r_idx_type == "i"
843+
and c_idx_type == "c"
844+
):
845+
reason = (
846+
f"Flaky column ordering when engine={engine}, "
847+
f"parser={parser}, index_name={index_name}, "
848+
f"r_idx_type={r_idx_type}, c_idx_type={c_idx_type}"
849+
)
850+
request.node.add_marker(pytest.mark.xfail(reason=reason, strict=False))
838851
df = tm.makeCustomDataframe(
839852
10, 7, data_gen_f=f, r_idx_type=r_idx_type, c_idx_type=c_idx_type
840853
)

0 commit comments

Comments
 (0)