[issue39502] test_zipfile fails on AIX due to time.localtime
Michael Felt
report at bugs.python.org
Thu Jan 30 09:20:03 EST 2020
Michael Felt <aixtools at felt.demon.nl> added the comment:
Probably this broke the 64-bit usage.
diff --git a/Python/pytime.c b/Python/pytime.c
index 54ddfc952b..6f13e62490 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -1059,7 +1059,7 @@ _PyTime_localtime(time_t t, struct tm *tm)
return 0;
#else /* !MS_WINDOWS */
-#ifdef _AIX
+#ifdef defined(_AIX) and (SIZEOF_LONG ==4)
/* bpo-34373: AIX does not return NULL if t is too small or too large */
if (t < -2145916800 /* 1902-01-01 */
|| t > 2145916800 /* 2038-01-01 */) {
Testing...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39502>
_______________________________________
More information about the Python-bugs-list
mailing list