Skip to content

Commit

Permalink
Another test
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Dec 6, 2023
1 parent a54a970 commit f04b187
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pandas/tests/extension/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,11 @@ def test_arith_series_with_scalar(self, data, all_arithmetic_operators, request)
elif all_arithmetic_operators in ("__rmul__", "__mul__") and (
pa.types.is_binary(pa_dtype) or pa.types.is_string(pa_dtype)
):
pytest.skip("Cannot multiply strings by a string")
request.applymarker(
pytest.mark.xfail(
raises=TypeError, reason="Can only string multiply by an integer."
)
)

mark = self._get_arith_xfail_marker(all_arithmetic_operators, pa_dtype)
if mark is not None:
Expand All @@ -985,6 +989,14 @@ def test_arith_frame_with_scalar(self, data, all_arithmetic_operators, request):
pa.types.is_string(pa_dtype) or pa.types.is_binary(pa_dtype)
):
pytest.skip("Skip testing Python string formatting")
elif all_arithmetic_operators in ("__rmul__", "__mul__") and (
pa.types.is_binary(pa_dtype) or pa.types.is_string(pa_dtype)
):
request.applymarker(
pytest.mark.xfail(
raises=TypeError, reason="Can only string multiply by an integer."
)
)

mark = self._get_arith_xfail_marker(all_arithmetic_operators, pa_dtype)
if mark is not None:
Expand Down

0 comments on commit f04b187

Please sign in to comment.