Commit 487aedb7 authored by Zachary Ware's avatar Zachary Ware

Issue #20101: Allow test_monotonic to pass on Windows machines on which

time.get_clock_info('monotonic').resolution == 0.015600099999999999

This is just a workaround pending a real resolution to #20101.
parent 6a31b0fa
......@@ -376,7 +376,8 @@ class TimeTestCase(unittest.TestCase):
t2 = time.monotonic()
dt = t2 - t1
self.assertGreater(t2, t1)
self.assertTrue(0.5 <= dt <= 1.0, dt)
# Issue #20101: On some Windows machines, dt may be slightly low
self.assertTrue(0.45 <= dt <= 1.0, dt)
info = time.get_clock_info('monotonic')
self.assertTrue(info.monotonic)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment