File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
from pandas ._libs .tslibs import Timestamp
5
+ from pandas .compat import (
6
+ is_platform_arm ,
7
+ is_platform_mac ,
8
+ )
5
9
6
10
import pandas as pd
7
11
from pandas import (
@@ -531,7 +535,10 @@ def test_constructor(self, dtype):
531
535
res = Index ([1 , 2 ** 63 + 1 ], dtype = dtype )
532
536
tm .assert_index_equal (res , idx )
533
537
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
+ )
535
542
def test_constructor_does_not_cast_to_float (self ):
536
543
# https://github.com/numpy/numpy/issues/19146
537
544
values = [0 , np .iinfo (np .uint64 ).max ]
Original file line number Diff line number Diff line change 6
6
import numpy as np
7
7
import pytest
8
8
9
- from pandas .compat import is_platform_arm
9
+ from pandas .compat import (
10
+ is_platform_arm ,
11
+ is_platform_mac ,
12
+ )
10
13
from pandas .errors import UnsupportedFunctionCall
11
14
12
15
from pandas import (
@@ -1073,7 +1076,7 @@ def test_rolling_sem(frame_or_series):
1073
1076
tm .assert_series_equal (result , expected )
1074
1077
1075
1078
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 " )
1077
1080
@pytest .mark .parametrize (
1078
1081
("func" , "third_value" , "values" ),
1079
1082
[
You can’t perform that action at this time.
0 commit comments