Skip to content

Commit b8a61a0

Browse files
less strict
1 parent 26a3db1 commit b8a61a0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pandas/tests/frame/methods/test_value_counts.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import numpy as np
22
import pytest
33

4+
from pandas._config import using_string_dtype
5+
6+
from pandas.compat import HAS_PYARROW
7+
48
import pandas as pd
59
import pandas._testing as tm
610

@@ -132,6 +136,9 @@ def test_data_frame_value_counts_dropna_true(nulls_fixture):
132136
tm.assert_series_equal(result, expected)
133137

134138

139+
@pytest.mark.xfail(
140+
using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)", strict=False
141+
)
135142
def test_data_frame_value_counts_dropna_false(nulls_fixture):
136143
# GH 41334
137144
df = pd.DataFrame(

pandas/tests/series/indexing/test_setitem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,9 @@ def test_mask_key(self, obj, key, expected, raises, val, indexer_sli):
824824
indexer_sli(obj)[mask] = val
825825

826826
@pytest.mark.xfail(
827-
using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)"
827+
using_string_dtype() and not HAS_PYARROW,
828+
reason="TODO(infer_string)",
829+
strict=False,
828830
)
829831
def test_series_where(self, obj, key, expected, raises, val, is_inplace):
830832
mask = np.zeros(obj.shape, dtype=bool)

0 commit comments

Comments
 (0)