We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ff387 commit 38a6287Copy full SHA for 38a6287
pandas/tests/indexes/interval/test_constructors.py
@@ -23,7 +23,7 @@
23
import pandas._testing as tm
24
from pandas.core.arrays import IntervalArray
25
import pandas.core.common as com
26
-
+from pandas.compat import is_platform_little_endian
27
28
@pytest.fixture(params=[None, "foo"])
29
def name(request):
@@ -44,12 +44,12 @@ class ConstructorTests:
44
(Index(np.arange(-10, 11, dtype=np.int64)), np.int64),
45
(Index(np.arange(10, 31, dtype=np.uint64)), np.uint64),
46
(Index(np.arange(20, 30, 0.5), dtype=np.float64), np.float64),
47
- (date_range("20180101", periods=10), "<M8[ns]"),
+ (date_range("20180101", periods=10), "<M8[ns]" if is_platform_little_endian() else ">M8[ns]"),
48
(
49
date_range("20180101", periods=10, tz="US/Eastern"),
50
"datetime64[ns, US/Eastern]",
51
),
52
- (timedelta_range("1 day", periods=10), "<m8[ns]"),
+ (timedelta_range("1 day", periods=10), "<m8[ns]" if is_platform_little_endian() else ">m8[ns]"),
53
]
54
)
55
def breaks_and_expected_subtype(self, request):
0 commit comments