[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-31 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b42aefb8969 by Victor Stinner in branch 'default': Issue #13847: Fix test_time, time.gmtime() doesn't use localtime() http://hg.python.org/cpython/rev/5b42aefb8969 -- ___ Python tracker

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor added the comment: There is still an error on Windows: == FAIL: test_localtime_failure (test.test_time.TimeTestCase) -- Traceback (most recent c

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor added the comment: The issue should be done with the last commit. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 856f0864437a by Victor Stinner in branch 'default': Issue #13847: Make test_localtime_failure() more robust http://hg.python.org/cpython/rev/856f0864437a -- ___ Python tracker

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 516d42a6e518 by Victor Stinner in branch 'default': Issue #13847: Fix test_mktime(), time.localtime() now raises OSError http://hg.python.org/cpython/rev/516d42a6e518 -- ___ Python tracker

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread STINNER Victor
STINNER Victor added the comment: I added tests on localtime() and clock(). I read more carefully time(), ftime() and gettimeofday() manpage: it is not possible that they fail if the argument is an invalid pointer, the current code is correct. I don't want to backport changes because they ar

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94b7eb09d0b3 by Victor Stinner in branch 'default': Issue #13847: time.clock() now raises a RuntimeError if the processor time used http://hg.python.org/cpython/rev/94b7eb09d0b3 -- ___ Python tracker

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ee4a104e33d by Victor Stinner in branch 'default': Issue #13847: time.localtime() and time.gmtime() now raise an OSError instead http://hg.python.org/cpython/rev/9ee4a104e33d -- nosy: +python-dev ___ Py

[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-23 Thread STINNER Victor
New submission from STINNER Victor : Attach patch catchs errors on time(), ftime(), localtime() and clock(). It changes floattime() and _Py_gettimeofday() signature: result now indicates if an error occurred or not, and these function now directly raise an exception. Catching time() error is m