Skip to content

Commit c6154d5

Browse files
committed
bool fails regardless of skipna
1 parent 5ae8f7f commit c6154d5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/tests/extension/test_arrow.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -538,12 +538,15 @@ def test_reduce_series_numeric(self, data, all_numeric_reductions, skipna, reque
538538
request.applymarker(xfail_mark)
539539
elif (
540540
not pa_version_under20p0
541-
and skipna
542541
and all_numeric_reductions == "skew"
543542
and (
544-
pa.types.is_integer(pa_dtype)
545-
or pa.types.is_floating(pa_dtype)
546-
or pa.types.is_boolean(pa_dtype)
543+
pa.types.is_boolean(pa_dtype)
544+
or (
545+
skipna
546+
and (
547+
pa.types.is_integer(pa_dtype) or pa.types.is_floating(pa_dtype)
548+
)
549+
)
547550
)
548551
):
549552
request.applymarker(

0 commit comments

Comments
 (0)