Skip to content

Commit b3cb116

Browse files
authored
PERF: conditionally mark xfails as slow (#50999)
1 parent 73dfbf4 commit b3cb116

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

pandas/tests/extension/test_arrow.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,12 @@ def test_accumulate_series(self, data, all_numeric_accumulations, skipna, reques
429429
)
430430

431431
if all_numeric_accumulations != "cumsum" or pa_version_under9p0:
432+
if request.config.option.skip_slow:
433+
# equivalent to marking these cases with @pytest.mark.slow,
434+
# these xfails take a long time to run because pytest
435+
# renders the exception messages even when not showing them
436+
pytest.skip("pyarrow xfail slow")
437+
432438
request.node.add_marker(
433439
pytest.mark.xfail(
434440
reason=f"{all_numeric_accumulations} not implemented",
@@ -770,7 +776,9 @@ class TestBaseIndex(base.BaseIndexTests):
770776

771777

772778
class TestBaseInterface(base.BaseInterfaceTests):
773-
@pytest.mark.xfail(reason="GH 45419: pyarrow.ChunkedArray does not support views.")
779+
@pytest.mark.xfail(
780+
reason="GH 45419: pyarrow.ChunkedArray does not support views.", run=False
781+
)
774782
def test_view(self, data):
775783
super().test_view(data)
776784

@@ -800,13 +808,17 @@ class TestBasePrinting(base.BasePrintingTests):
800808

801809

802810
class TestBaseReshaping(base.BaseReshapingTests):
803-
@pytest.mark.xfail(reason="GH 45419: pyarrow.ChunkedArray does not support views")
811+
@pytest.mark.xfail(
812+
reason="GH 45419: pyarrow.ChunkedArray does not support views", run=False
813+
)
804814
def test_transpose(self, data):
805815
super().test_transpose(data)
806816

807817

808818
class TestBaseSetitem(base.BaseSetitemTests):
809-
@pytest.mark.xfail(reason="GH 45419: pyarrow.ChunkedArray does not support views")
819+
@pytest.mark.xfail(
820+
reason="GH 45419: pyarrow.ChunkedArray does not support views", run=False
821+
)
810822
def test_setitem_preserves_views(self, data):
811823
super().test_setitem_preserves_views(data)
812824

0 commit comments

Comments
 (0)