From: Debian Science Team Date: Fri, 9 Feb 2024 20:48:14 +0000 (+0000) Subject: Don't assume little-endian in test references X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2^2^2^2^2^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=daf3931ee0f0280c3d00d2daa036aada38297f6f;p=pandas.git Don't assume little-endian in test references Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name tests_dont_assume_endian.patch --- diff --git a/pandas/tests/indexes/interval/test_constructors.py b/pandas/tests/indexes/interval/test_constructors.py index 9524288b..e2b38d62 100644 --- a/pandas/tests/indexes/interval/test_constructors.py +++ b/pandas/tests/indexes/interval/test_constructors.py @@ -20,7 +20,7 @@ from pandas import ( import pandas._testing as tm from pandas.core.arrays import IntervalArray import pandas.core.common as com - +from pandas.compat import is_platform_little_endian @pytest.fixture(params=[None, "foo"]) def name(request): @@ -41,12 +41,12 @@ class ConstructorTests: (Index(np.arange(-10, 11, dtype=np.int64)), np.int64), (Index(np.arange(10, 31, dtype=np.uint64)), np.uint64), (Index(np.arange(20, 30, 0.5), dtype=np.float64), np.float64), - (date_range("20180101", periods=10), "M8[ns]"), ( date_range("20180101", periods=10, tz="US/Eastern"), "datetime64[ns, US/Eastern]", ), - (timedelta_range("1 day", periods=10), "m8[ns]"), ] ) def breaks_and_expected_subtype(self, request):