Skip to content

Commit 54f725d

Browse files
authored
TST: Fix IntervalIndex constructor tests on big-endian systems (#57393)
Two tests cases specify the expected data to be little-endian. However, none of the other cases do so, and the test creates native endian data, causing these tests to fail only in these specific cases.
1 parent b077967 commit 54f725d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/interval/test_constructors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ class ConstructorTests:
4040
(Index(np.arange(-10, 11, dtype=np.int64)), np.int64),
4141
(Index(np.arange(10, 31, dtype=np.uint64)), np.uint64),
4242
(Index(np.arange(20, 30, 0.5), dtype=np.float64), np.float64),
43-
(date_range("20180101", periods=10), "<M8[ns]"),
43+
(date_range("20180101", periods=10), "M8[ns]"),
4444
(
4545
date_range("20180101", periods=10, tz="US/Eastern"),
4646
"datetime64[ns, US/Eastern]",
4747
),
48-
(timedelta_range("1 day", periods=10), "<m8[ns]"),
48+
(timedelta_range("1 day", periods=10), "m8[ns]"),
4949
],
5050
)
5151
@pytest.mark.parametrize("name", [None, "foo"])

0 commit comments

Comments
 (0)