From: Debian Science Team Date: Mon, 7 Dec 2020 23:06:28 +0000 (+0000) Subject: Avoid year 2038 overflow in test X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2^2^2^2^2^2^2^2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7431d53b05ae321a85c0aadb9bf0fbba15933840;p=pandas.git 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 --- 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):