From ffe4e2f20a53cf46811316ebe009d76ff20c4253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Niederb=C3=BChl?= Date: Sat, 19 Oct 2019 18:28:53 +0200 Subject: [PATCH] Make datetime range for tests smaller --- examples/rustapi_module/tests/test_datetime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rustapi_module/tests/test_datetime.py b/examples/rustapi_module/tests/test_datetime.py index ce2e07b7..d811e888 100644 --- a/examples/rustapi_module/tests/test_datetime.py +++ b/examples/rustapi_module/tests/test_datetime.py @@ -40,8 +40,8 @@ MIN_DAYS = pdt.timedelta.min // pdt.timedelta(days=1) MAX_MICROSECONDS = int(pdt.timedelta.max.total_seconds() * 1e6) MIN_MICROSECONDS = int(pdt.timedelta.min.total_seconds() * 1e6) -MIN_DATETIME = pdt.datetime.min -MAX_DATETIME = pdt.datetime.max +MIN_DATETIME = pdt.datetime(1970, 1, 1) +MAX_DATETIME = pdt.datetime(3000, 1, 1) PYPY = platform.python_implementation() == "PyPy" HAS_FOLD = getattr(pdt.datetime, "fold", False)