|
|
4898f3 |
From 607aa65e82e0fae1e9e4666206f746d7ffc1a3b7 Mon Sep 17 00:00:00 2001
|
|
|
4898f3 |
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
4898f3 |
Date: Mon, 12 Feb 2024 22:39:36 -0500
|
|
|
4898f3 |
Subject: [PATCH 3/6] TST: Fix IntervalIndex constructor tests on big-endian
|
|
|
4898f3 |
systems
|
|
|
4898f3 |
|
|
|
4898f3 |
Two tests cases specify the expected data to be little-endian. However,
|
|
|
4898f3 |
none of the other cases do so, and the test creates native endian data,
|
|
|
4898f3 |
causing these tests to fail only in these specific cases.
|
|
|
4898f3 |
|
|
|
4898f3 |
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
4898f3 |
---
|
|
|
4898f3 |
pandas/tests/indexes/interval/test_constructors.py | 4 ++--
|
|
|
4898f3 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
4898f3 |
|
|
|
4898f3 |
diff --git a/pandas/tests/indexes/interval/test_constructors.py b/pandas/tests/indexes/interval/test_constructors.py
|
|
|
4898f3 |
index e47a014f18..28a6ac4c6d 100644
|
|
|
4898f3 |
--- a/pandas/tests/indexes/interval/test_constructors.py
|
|
|
4898f3 |
+++ b/pandas/tests/indexes/interval/test_constructors.py
|
|
|
4898f3 |
@@ -44,12 +44,12 @@ class ConstructorTests:
|
|
|
4898f3 |
(Index(np.arange(-10, 11, dtype=np.int64)), np.int64),
|
|
|
4898f3 |
(Index(np.arange(10, 31, dtype=np.uint64)), np.uint64),
|
|
|
4898f3 |
(Index(np.arange(20, 30, 0.5), dtype=np.float64), np.float64),
|
|
|
4898f3 |
- (date_range("20180101", periods=10), "
|
|
|
4898f3 |
+ (date_range("20180101", periods=10), "M8[ns]"),
|
|
|
4898f3 |
(
|
|
|
4898f3 |
date_range("20180101", periods=10, tz="US/Eastern"),
|
|
|
4898f3 |
"datetime64[ns, US/Eastern]",
|
|
|
4898f3 |
),
|
|
|
4898f3 |
- (timedelta_range("1 day", periods=10), "
|
|
|
4898f3 |
+ (timedelta_range("1 day", periods=10), "m8[ns]"),
|
|
|
4898f3 |
]
|
|
|
4898f3 |
)
|
|
|
4898f3 |
def breaks_and_expected_subtype(self, request):
|
|
|
4898f3 |
--
|
|
|
4898f3 |
2.43.0
|
|
|
4898f3 |
|