https://github.com/python/cpython/commit/cf0f4e6ebc64c5df3e10db2038eeaab27a3f7cc6 commit: cf0f4e6ebc64c5df3e10db2038eeaab27a3f7cc6 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-01-08T13:29:41Z summary:
[3.13] gh-143528: Fix test_time.test_thread_time() (GH-143558) (#143560) gh-143528: Fix test_time.test_thread_time() (GH-143558) Tolerate 100 ms instead of 20 ms to support slow CIs. (cherry picked from commit efaa56f73cb1dc4863894444425e753afb7b997c) Co-authored-by: Victor Stinner <[email protected]> files: M Lib/test/test_time.py diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 705948e06109e0..5f5d8527a236fd 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -571,11 +571,10 @@ def test_thread_time(self): # thread_time() should not include time spend during a sleep start = time.thread_time() - time.sleep(0.100) + time.sleep(0.200) stop = time.thread_time() - # use 20 ms because thread_time() has usually a resolution of 15 ms - # on Windows - self.assertLess(stop - start, 0.020) + # gh-143528: use 100 ms to support slow CI + self.assertLess(stop - start, 0.100) info = time.get_clock_info('thread_time') self.assertTrue(info.monotonic) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
