Skip to content

Commit

Permalink
CI: Fix failing tests (pandas-dev#48493)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Sep 10, 2022
1 parent aeb9ef6 commit f36685e
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions pandas/tests/extension/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,17 +1423,7 @@ def test_diff(self, data, periods, request):
@pytest.mark.parametrize("dropna", [True, False])
def test_value_counts(self, all_data, dropna, request):
pa_dtype = all_data.dtype.pyarrow_dtype
if (
pa.types.is_date(pa_dtype)
or (pa.types.is_timestamp(pa_dtype) and pa_dtype.tz is None)
) and dropna:
request.node.add_marker(
pytest.mark.xfail(
raises=NotImplementedError, # tries casting to i8
reason="GH 34986",
)
)
elif pa.types.is_duration(pa_dtype):
if pa.types.is_duration(pa_dtype):
request.node.add_marker(
pytest.mark.xfail(
raises=pa.ArrowNotImplementedError,
Expand All @@ -1444,16 +1434,7 @@ def test_value_counts(self, all_data, dropna, request):

def test_value_counts_with_normalize(self, data, request):
pa_dtype = data.dtype.pyarrow_dtype
if pa.types.is_date(pa_dtype) or (
pa.types.is_timestamp(pa_dtype) and pa_dtype.tz is None
):
request.node.add_marker(
pytest.mark.xfail(
raises=NotImplementedError, # tries casting to i8
reason="GH 34986",
)
)
elif pa.types.is_duration(pa_dtype):
if pa.types.is_duration(pa_dtype):
request.node.add_marker(
pytest.mark.xfail(
raises=pa.ArrowNotImplementedError,
Expand Down

0 comments on commit f36685e

Please sign in to comment.