Skip to content

Commit

Permalink
less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Aug 9, 2024
1 parent 26a3db1 commit b8a61a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pandas/tests/frame/methods/test_value_counts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import numpy as np
import pytest

from pandas._config import using_string_dtype

from pandas.compat import HAS_PYARROW

import pandas as pd
import pandas._testing as tm

Expand Down Expand Up @@ -132,6 +136,9 @@ def test_data_frame_value_counts_dropna_true(nulls_fixture):
tm.assert_series_equal(result, expected)


@pytest.mark.xfail(
using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)", strict=False
)
def test_data_frame_value_counts_dropna_false(nulls_fixture):
# GH 41334
df = pd.DataFrame(
Expand Down
4 changes: 3 additions & 1 deletion pandas/tests/series/indexing/test_setitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ def test_mask_key(self, obj, key, expected, raises, val, indexer_sli):
indexer_sli(obj)[mask] = val

@pytest.mark.xfail(
using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)"
using_string_dtype() and not HAS_PYARROW,
reason="TODO(infer_string)",
strict=False,
)
def test_series_where(self, obj, key, expected, raises, val, is_inplace):
mask = np.zeros(obj.shape, dtype=bool)
Expand Down

0 comments on commit b8a61a0

Please sign in to comment.