Skip to content

Commit 4fc4572

Browse files
phoflnoatamir
authored andcommitted
CI: Fix failing tests (pandas-dev#48493)
1 parent fc373b4 commit 4fc4572

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

pandas/tests/extension/test_arrow.py

+2-21
Original file line numberDiff line numberDiff line change
@@ -1437,17 +1437,7 @@ def test_diff(self, data, periods, request):
14371437
@pytest.mark.parametrize("dropna", [True, False])
14381438
def test_value_counts(self, all_data, dropna, request):
14391439
pa_dtype = all_data.dtype.pyarrow_dtype
1440-
if (
1441-
pa.types.is_date(pa_dtype)
1442-
or (pa.types.is_timestamp(pa_dtype) and pa_dtype.tz is None)
1443-
) and dropna:
1444-
request.node.add_marker(
1445-
pytest.mark.xfail(
1446-
raises=NotImplementedError, # tries casting to i8
1447-
reason="GH 34986",
1448-
)
1449-
)
1450-
elif pa.types.is_duration(pa_dtype):
1440+
if pa.types.is_duration(pa_dtype):
14511441
request.node.add_marker(
14521442
pytest.mark.xfail(
14531443
raises=pa.ArrowNotImplementedError,
@@ -1458,16 +1448,7 @@ def test_value_counts(self, all_data, dropna, request):
14581448

14591449
def test_value_counts_with_normalize(self, data, request):
14601450
pa_dtype = data.dtype.pyarrow_dtype
1461-
if pa.types.is_date(pa_dtype) or (
1462-
pa.types.is_timestamp(pa_dtype) and pa_dtype.tz is None
1463-
):
1464-
request.node.add_marker(
1465-
pytest.mark.xfail(
1466-
raises=NotImplementedError, # tries casting to i8
1467-
reason="GH 34986",
1468-
)
1469-
)
1470-
elif pa.types.is_duration(pa_dtype):
1451+
if pa.types.is_duration(pa_dtype):
14711452
request.node.add_marker(
14721453
pytest.mark.xfail(
14731454
raises=pa.ArrowNotImplementedError,

0 commit comments

Comments
 (0)