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 5af09f5 commit f76bbb2Copy full SHA for f76bbb2
Lib/test/test_time.py
@@ -571,11 +571,10 @@ def test_thread_time(self):
571
572
# thread_time() should not include time spend during a sleep
573
start = time.thread_time()
574
- time.sleep(0.100)
+ time.sleep(0.200)
575
stop = time.thread_time()
576
- # use 20 ms because thread_time() has usually a resolution of 15 ms
577
- # on Windows
578
- self.assertLess(stop - start, 0.020)
+ # gh-143528: use 100 ms to support slow CI
+ self.assertLess(stop - start, 0.100)
579
580
info = time.get_clock_info('thread_time')
581
self.assertTrue(info.monotonic)
0 commit comments