mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Close #19999: tolerate coarse time when testing time.monotonic() on very
busy/slow buildbot
This commit is contained in:
parent
de57074874
commit
170078804c
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class TimeTestCase(unittest.TestCase):
|
|||
t2 = time.monotonic()
|
||||
dt = t2 - t1
|
||||
self.assertGreater(t2, t1)
|
||||
self.assertAlmostEqual(dt, 0.5, delta=0.2)
|
||||
self.assertTrue(0.5 <= dt <= 1.0, dt)
|
||||
|
||||
info = time.get_clock_info('monotonic')
|
||||
self.assertTrue(info.monotonic)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue