[issue11188] test_time error on AIX

2020-11-17 Thread Kevin
Change by Kevin : -- nosy: +kadler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue11188] test_time error on AIX

2014-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00e94e454813 by Victor Stinner in branch 'default': Issue #11188, #19748: mktime() returns -1 on error. On Linux, the tm_wday field http://hg.python.org/cpython/rev/00e94e454813 -- ___ Python tracker

[issue11188] test_time error on AIX

2013-06-19 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11188] test_time error on AIX

2013-06-19 Thread David Edelsohn
Changes by David Edelsohn : -- components: +Extension Modules type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11188] test_time error on AIX

2013-03-14 Thread alef
Changes by alef : -- nosy: +alef ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue11188] test_time error on AIX

2011-05-09 Thread Mark Dickinson
Changes by Mark Dickinson : -- Removed message: http://bugs.python.org/msg135584 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11188] test_time error on AIX

2011-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f23d63b578c by Mark Dickinson in branch 'default': Issue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the less reliable 2.0**n. http://hg.python.org/cpython/rev/1f23d63b578c -- nosy: +python-dev

[issue11188] test_time error on AIX

2011-03-20 Thread STINNER Victor
STINNER Victor added the comment: strftime_aix.patch is a little bit too strict: it looks like strftime() supports large year values (year > ). We may only raise an error if the year is smaller than 1. -- ___ Python tracker

[issue11188] test_time error on AIX

2011-02-16 Thread Sébastien Sablé
Sébastien Sablé added the comment: gmtime(-1) worked fine :/ >>> import time >>> time.gmtime(-1) time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=23, tm_min=59, tm_sec=59, tm_wday=2, tm_yday=365, tm_isdst=0) -- ___ Python tracker

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2011/2/15 Sébastien Sablé : .. for t in (-2, -1, 0, 1): > ...     print(time.localtime(t)) > ... > time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=59, > tm_sec=58, tm_wday=3, tm_yday=1, tm_isdst=0) .. This looks right. (For tim

[issue11188] test_time error on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Python 3.2rc3+ (py3k:88422M, Feb 15 2011, 16:57:29) [C] on aix6 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> for t in (-2, -1, 0, 1): ... print(time.localtime(t)) ... time.struct_time(tm_year=1970, tm_mon=1, tm

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like different standards have different requirements for localtime() error handling compare: http://pubs.opengroup.org/onlinepubs/009695399/functions/localtime.html and http://pubs.opengroup.org/onlinepubs/7990989775/xsh/localtime.html The lat

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sébastien, Can you tell us what time.localtime(t) produces for t in (-2, -1, 0, 1)? Apparently time.mktime() fails on values produced by time.localtime() and this sounds like a platform bug. It is OK to restrict time_t to positive values, but in this

[issue11188] test_time error on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is what I could find in the "man mktime": """ Upon successful completion, the mktime subroutine sets the values of the tm_wday and tm_yday fields appropriately. Other fields are set to represent the specified time since January 1, 1970. Howe

[issue11188] test_time error on AIX

2011-02-14 Thread STINNER Victor
STINNER Victor added the comment: > http://code.google.com/p/y2038/wiki/AmazingDiscoveries <<< AIX again Merijn informs me that before year 0 AIX gets very, very slow. >>> -- ___ Python tracker _

[issue11188] test_time error on AIX

2011-02-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have come across the following post: http://code.google.com/p/y2038/wiki/AmazingDiscoveries I think some of the findings there may be relevant as we push the boundaries of supported time values. -- ___ Pyth

[issue11188] test_time error on AIX

2011-02-14 Thread STINNER Victor
STINNER Victor added the comment: > but tm_wday = 42 did not solve the problem it seems. Can you try with tm_yday=-1 or tm_isdst=-2? -- ___ Python tracker ___ _

[issue11188] test_time error on AIX

2011-02-14 Thread STINNER Victor
STINNER Victor added the comment: > So test_negative is now OK Ok, I converted your comment to a patch: strftime_aix.patch. -- keywords: +patch Added file: http://bugs.python.org/file20762/strftime_aix.patch ___ Python tracker

[issue11188] test_time error on AIX

2011-02-14 Thread Sébastien Sablé
Sébastien Sablé added the comment: I tried the following patch (_AIX is defined on AIX platforms): Index: Modules/timemodule.c === --- Modules/timemodule.c(révision 88420) +++ Modules/timemodule.c(copie de travail)

[issue11188] test_time error on AIX

2011-02-14 Thread STINNER Victor
STINNER Victor added the comment: > File ".../Lib/test/test_time.py", line 351, in test_mktime >self.assertEqual(time.mktime(tt), t) > OverflowError: mktime argument out of range I don't know which values are "out of range". But I guess that the test fails because of t=-1, which would mea

[issue11188] test_time error on AIX

2011-02-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11188] test_time error on AIX

2011-02-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11188] test_time error on AIX

2011-02-11 Thread Sébastien Sablé
New submission from Sébastien Sablé : I have the following errors on test_time on AIX: == ERROR: test_mktime (test.test_time.TestAsctime4dyear) -- Traceback (mo