From 7431d53b05ae321a85c0aadb9bf0fbba15933840 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Mon, 7 Dec 2020 23:06:28 +0000 Subject: [PATCH] Avoid year 2038 overflow in test https://tests.reproducible-builds.org/debian/rbuild/unstable/i386/pandas_1.1.4+dfsg-1.rbuild.log.gz Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name i386_time_overflow.patch --- pandas/tests/indexes/datetimes/test_ops.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py index ea638154..bbc826be 100644 --- a/pandas/tests/indexes/datetimes/test_ops.py +++ b/pandas/tests/indexes/datetimes/test_ops.py @@ -2,6 +2,7 @@ from datetime import datetime import numpy as np import pytest +import sys import pandas as pd from pandas import ( @@ -122,7 +123,7 @@ class TestDatetimeIndexOps: "microsecond", ], ): - idx = pd.date_range(start="2013-04-01", periods=30, freq=freq, tz=tz) + idx = pd.date_range(start="2013-04-01", periods=10 if (sys.maxsize<2**33 and freq=='A') else 30, freq=freq, tz=tz) assert idx.resolution == expected def test_value_counts_unique(self, tz_naive_fixture): -- 2.30.2