Skip to content

Commit 3d34a17

Browse files
authored
TST: fix xpass for M1 Mac (#41982)
1 parent 2a6da7c commit 3d34a17

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

pandas/tests/indexes/numeric/test_numeric.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
import pytest
33

44
from pandas._libs.tslibs import Timestamp
5+
from pandas.compat import (
6+
is_platform_arm,
7+
is_platform_mac,
8+
)
59

610
import pandas as pd
711
from pandas import (
@@ -531,7 +535,10 @@ def test_constructor(self, dtype):
531535
res = Index([1, 2 ** 63 + 1], dtype=dtype)
532536
tm.assert_index_equal(res, idx)
533537

534-
@pytest.mark.xfail(reason="https://github.com/numpy/numpy/issues/19146")
538+
@pytest.mark.xfail(
539+
not (is_platform_arm and is_platform_mac()),
540+
reason="https://github.com/numpy/numpy/issues/19146",
541+
)
535542
def test_constructor_does_not_cast_to_float(self):
536543
# https://github.com/numpy/numpy/issues/19146
537544
values = [0, np.iinfo(np.uint64).max]

pandas/tests/window/test_rolling.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
import numpy as np
77
import pytest
88

9-
from pandas.compat import is_platform_arm
9+
from pandas.compat import (
10+
is_platform_arm,
11+
is_platform_mac,
12+
)
1013
from pandas.errors import UnsupportedFunctionCall
1114

1215
from pandas import (
@@ -1073,7 +1076,7 @@ def test_rolling_sem(frame_or_series):
10731076
tm.assert_series_equal(result, expected)
10741077

10751078

1076-
@pytest.mark.xfail(is_platform_arm(), reason="GH 41740")
1079+
@pytest.mark.xfail(is_platform_arm() and not is_platform_mac(), reason="GH 38921")
10771080
@pytest.mark.parametrize(
10781081
("func", "third_value", "values"),
10791082
[

0 commit comments

Comments
 (0)