mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Issue #20101: Merge with 3.3
This commit is contained in:
commit
393a94243f
1 changed files with 2 additions and 1 deletions
|
|
@ -384,7 +384,8 @@ class TimeTestCase(unittest.TestCase):
|
||||||
t2 = time.monotonic()
|
t2 = time.monotonic()
|
||||||
dt = t2 - t1
|
dt = t2 - t1
|
||||||
self.assertGreater(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)
|
||||||
|
|
||||||
# monotonic() is a monotonic but non adjustable clock
|
# monotonic() is a monotonic but non adjustable clock
|
||||||
info = time.get_clock_info('monotonic')
|
info = time.get_clock_info('monotonic')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue