diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py index 9572aeaf41c91..de75f1dffde56 100644 --- a/pandas/tests/indexes/numeric/test_numeric.py +++ b/pandas/tests/indexes/numeric/test_numeric.py @@ -2,6 +2,10 @@ import pytest from pandas._libs.tslibs import Timestamp +from pandas.compat import ( + is_platform_arm, + is_platform_mac, +) import pandas as pd from pandas import ( @@ -531,7 +535,10 @@ def test_constructor(self, dtype): res = Index([1, 2 ** 63 + 1], dtype=dtype) tm.assert_index_equal(res, idx) - @pytest.mark.xfail(reason="https://github.com/numpy/numpy/issues/19146") + @pytest.mark.xfail( + not (is_platform_arm and is_platform_mac()), + reason="https://github.com/numpy/numpy/issues/19146", + ) def test_constructor_does_not_cast_to_float(self): # https://github.com/numpy/numpy/issues/19146 values = [0, np.iinfo(np.uint64).max] diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index 17a6d9216ca92..77ca482936298 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -6,7 +6,10 @@ import numpy as np import pytest -from pandas.compat import is_platform_arm +from pandas.compat import ( + is_platform_arm, + is_platform_mac, +) from pandas.errors import UnsupportedFunctionCall from pandas import ( @@ -1073,7 +1076,7 @@ def test_rolling_sem(frame_or_series): tm.assert_series_equal(result, expected) -@pytest.mark.xfail(is_platform_arm(), reason="GH 41740") +@pytest.mark.xfail(is_platform_arm() and not is_platform_mac(), reason="GH 38921") @pytest.mark.parametrize( ("func", "third_value", "values"), [