We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de53bf4 commit 8c82b04Copy full SHA for 8c82b04
Lib/test/test_time.py
@@ -577,11 +577,10 @@ def test_thread_time(self):
577
578
# thread_time() should not include time spend during a sleep
579
start = time.thread_time()
580
- time.sleep(0.100)
+ time.sleep(0.200)
581
stop = time.thread_time()
582
- # use 20 ms because thread_time() has usually a resolution of 15 ms
583
- # on Windows
584
- self.assertLess(stop - start, 0.020)
+ # gh-143528: use 100 ms to support slow CI
+ self.assertLess(stop - start, 0.100)
585
586
info = time.get_clock_info('thread_time')
587
self.assertTrue(info.monotonic)
0 commit comments