[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

STINNER Victor report at bugs.python.org
Mon Dec 17 05:54:06 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I searched from "time.time" and "from time import(...)time" in the Python standard library (in the master branch) and it seems like all usage of time.time() are now appropriate. I close the issue.

Sometimes, I'm not sure that if time.monotonic() or time.perf_counter() should be used, but at least both functions are monotonic and so are not affected by this issue (clock going backwards).

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35513>
_______________________________________


More information about the Python-bugs-list mailing list