Skip to content

TST: fix xpass for M1 Mac #41982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2021
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