Skip to content

Commit 6ece693

Browse files
add some xfails
1 parent 1e6bdd5 commit 6ece693

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

pandas/tests/apply/test_invalid_arg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import numpy as np
1313
import pytest
1414

15+
from pandas._config import using_string_dtype
16+
1517
from pandas.errors import SpecificationError
1618

1719
from pandas import (
@@ -209,6 +211,8 @@ def transform(row):
209211
data.apply(transform, axis=1)
210212

211213

214+
# we should raise a proper TypeError instead of propagating the pyarrow error
215+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False)
212216
@pytest.mark.parametrize(
213217
"df, func, expected",
214218
tm.get_cython_table_params(
@@ -229,6 +233,8 @@ def test_agg_cython_table_raises_frame(df, func, expected, axis, using_infer_str
229233
df.agg(func, axis=axis)
230234

231235

236+
# we should raise a proper TypeError instead of propagating the pyarrow error
237+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False)
232238
@pytest.mark.parametrize(
233239
"series, func, expected",
234240
chain(

pandas/tests/extension/base/ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class BaseArithmeticOpsTests(BaseOpsUtil):
140140
series_array_exc: type[Exception] | None = TypeError
141141
divmod_exc: type[Exception] | None = TypeError
142142

143+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False)
143144
def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
144145
# series & scalar
145146
if all_arithmetic_operators == "__rmod__" and is_string_dtype(data.dtype):

pandas/tests/groupby/test_groupby_dropna.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
import pandas._testing as tm
1212
from pandas.tests.groupby import get_groupby_method_args
1313

14+
pytestmark = pytest.mark.xfail(
15+
using_string_dtype(), reason="TODO(infer_string)", strict=False
16+
)
17+
1418

1519
@pytest.mark.parametrize(
1620
"dropna, tuples, outputs",

0 commit comments

Comments
 (0)