Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Lib/test/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,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)
Expand Down
Loading