Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pandas/tests/indexes/numeric/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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]
Expand Down
7 changes: 5 additions & 2 deletions pandas/tests/window/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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"),
[
Expand Down