Skip to content

Commit 9d141ae

Browse files
GH1051 Drop astype tests for Mac arm for float128 and complex256
1 parent d289ef5 commit 9d141ae

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
# Don't use macos-latest because it is arm64
21-
os: [ubuntu-latest, windows-latest, macos-13]
20+
# macos-13 is intel-based, latest is arm
21+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
2222
python-version: ["3.10", "3.11", "3.12"]
2323

2424
name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }}

tests/test_series.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,6 +2429,15 @@ def test_astype_float(cast_arg: FloatDtypeArg, target_type: type) -> None:
24292429
s.astype(cast_arg)
24302430
pytest.skip("Windows does not support float128")
24312431

2432+
if (
2433+
platform.system() == "Darwin"
2434+
and platform.processor() == "arm"
2435+
and cast_arg in ("f16", "float128")
2436+
):
2437+
with pytest.raises(TypeError):
2438+
s.astype(cast_arg)
2439+
pytest.skip("MacOS arm does not support float128")
2440+
24322441
check(s.astype(cast_arg), pd.Series, target_type)
24332442

24342443
if TYPE_CHECKING:
@@ -2482,6 +2491,15 @@ def test_astype_complex(cast_arg: ComplexDtypeArg, target_type: type) -> None:
24822491
s.astype(cast_arg)
24832492
pytest.skip("Windows does not support complex256")
24842493

2494+
if (
2495+
platform.system() == "Darwin"
2496+
and platform.processor() == "arm"
2497+
and cast_arg in ("c32", "complex256")
2498+
):
2499+
with pytest.raises(TypeError):
2500+
s.astype(cast_arg)
2501+
pytest.skip("MacOS arm does not support complex256")
2502+
24852503
check(s.astype(cast_arg), pd.Series, target_type)
24862504

24872505
if TYPE_CHECKING:

0 commit comments

Comments
 (0)