]> granicus.if.org Git - python/commit
Issue #24707: Remove assertion in monotonic clock
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 22:13:46 +0000 (00:13 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 22:13:46 +0000 (00:13 +0200)
commitc3c616c3d193c211bd435380593a20ec13e07b7b
treed71ab0c1bdb5c88362dc8e39e089a3add8f265f5
parent4912e7a3fd0c78d630b8e571d35c2968eb4b586c
Issue #24707: Remove assertion in monotonic clock

Don't check anymore at runtime that the monotonic clock doesn't go backward.
Yes, it happens. It occurs sometimes each month on a Debian buildbot slave
running in a VM.

The problem is that Python cannot do anything useful if a monotonic clock goes
backward. It was decided in the PEP 418 to not fix the system, but only expose
the clock provided by the OS.
Python/pytime.c