Skip to content

Commit 024858c

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
Don't require 32-bit to be time32
Debian armhf/armel (but not i386) are now time64 Author: Graham Inggs, Rebecca N. Palmer <[email protected]> Bug-Debian: https://bugs.debian.org/1068104 Forwarded: no Gbp-Pq: Name 1068104_time64.patch
1 parent e7c297e commit 024858c

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

pandas/tests/indexes/datetimes/methods/test_resolution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_dti_resolution(request, tz_naive_fixture, freq, expected):
2424
tz = tz_naive_fixture
2525
if freq == "YE" and not IS64 and isinstance(tz, tzlocal):
2626
request.applymarker(
27-
pytest.mark.xfail(reason="OverflowError inside tzlocal past 2038")
27+
pytest.mark.xfail(reason="OverflowError inside tzlocal past 2038", strict=False)
2828
)
2929

3030
idx = date_range(start="2013-04-01", periods=30, freq=freq, tz=tz)

pandas/tests/io/sas/test_sas7bdat.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import pandas._testing as tm
1616

1717
from pandas.io.sas.sas7bdat import SAS7BDATReader
18+
import platform
19+
import re
20+
is_platform_x86_32 = bool(re.match("i.?86|x86", platform.uname()[4])) and not IS64
1821

1922

2023
@pytest.fixture
@@ -202,7 +205,7 @@ def test_date_time(datapath):
202205
res = df0["DateTimeHi"].astype("M8[us]").dt.round("ms")
203206
df0["DateTimeHi"] = res.astype("M8[ms]")
204207

205-
if not IS64:
208+
if is_platform_x86_32:
206209
# No good reason for this, just what we get on the CI
207210
df0.loc[0, "DateTimeHi"] += np.timedelta64(1, "ms")
208211
df0.loc[[2, 3], "DateTimeHi"] -= np.timedelta64(1, "ms")
@@ -297,7 +300,7 @@ def test_max_sas_date(datapath):
297300
columns=["text", "dt_as_float", "dt_as_dt", "date_as_float", "date_as_date"],
298301
)
299302

300-
if not IS64:
303+
if is_platform_x86_32:
301304
# No good reason for this, just what we get on the CI
302305
expected.loc[:, "dt_as_dt"] -= np.timedelta64(1, "ms")
303306

@@ -340,7 +343,7 @@ def test_max_sas_date_iterator(datapath):
340343
columns=col_order,
341344
),
342345
]
343-
if not IS64:
346+
if is_platform_x86_32:
344347
# No good reason for this, just what we get on the CI
345348
expected[0].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
346349
expected[1].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
@@ -371,7 +374,7 @@ def test_null_date(datapath):
371374
),
372375
},
373376
)
374-
if not IS64:
377+
if is_platform_x86_32:
375378
# No good reason for this, just what we get on the CI
376379
expected.loc[0, "datetimecol"] -= np.timedelta64(1, "ms")
377380
tm.assert_frame_equal(df, expected)

pandas/tests/tools/test_to_timedelta.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_to_timedelta_on_missing_values_list(self, val):
244244
actual = to_timedelta([val])
245245
assert actual[0]._value == np.timedelta64("NaT").astype("int64")
246246

247-
@pytest.mark.xfail(not IS64, reason="Floating point error")
247+
@pytest.mark.xfail(not IS64, reason="Floating point error", strict=False)
248248
def test_to_timedelta_float(self):
249249
# https://github.com/pandas-dev/pandas/issues/25077
250250
arr = np.arange(0, 1, 1e-6)[-10:]

pandas/tests/tseries/offsets/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_apply_out_of_range(request, tz_naive_fixture, _offset):
143143
# If we hit OutOfBoundsDatetime on non-64 bit machines
144144
# we'll drop out of the try clause before the next test
145145
request.applymarker(
146-
pytest.mark.xfail(reason="OverflowError inside tzlocal past 2038")
146+
pytest.mark.xfail(reason="OverflowError inside tzlocal past 2038", strict=False)
147147
)
148148
elif (
149149
isinstance(tz, tzlocal)

0 commit comments

Comments
 (0)