]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33723: Fix test_time.test_thread_time() (GH-8267)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Jul 2018 14:05:43 +0000 (07:05 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Jul 2018 14:05:43 +0000 (07:05 -0700)
commit4ada0cff5315627eae8208adf0209b479f497b8d
treea14e2af23707b6e6bf38970c0d8afe4af32973f8
parentb89776fb1b000f73a62850bea78e5b3434bd7e9a
bpo-33723: Fix test_time.test_thread_time() (GH-8267)

The test failed on AMD64 Debian root 3.x buildbot because the busy
loop of 100 ms only increased time.thread_time() by 19.9 ms which is
smaller than 20 ms. Modify the test to tolerate a delta of at least
15 ms instead of 20 ms.
(cherry picked from commit d6345def68d3a0227253da26213dadb247f786db)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_time.py