[issue14428] Implementation of the PEP 418
STINNER Victor
report at bugs.python.org
Sun Apr 29 19:57:10 CEST 2012
STINNER Victor <victor.stinner at gmail.com> added the comment:
"The test is a bit too optimistic: a thread is looping for 0.2s, and the test checks that the process time (user + system) increased of at least 0.1s. If the thread is preempted, there's a high chance you won't get even as low as 0.1s."
Hum, the problem is maybe that the thread is preempted, but the first problem is that the test considers that time.process_time() uses seconds.
I rewrote the test to make it more reliable.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14428>
_______________________________________
More information about the Python-bugs-list
mailing list