STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14428>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to