cpython: a34582c53911 (original) (raw)
Mercurial > cpython
changeset 88010:a34582c53911
(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on very busy/slow buildbot [#19999]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Mon, 16 Dec 2013 22:38:46 +0100 |
parents | 07869026b13b(current diff)4864c0b914ae(diff) |
children | a1a05e2724dd |
files | Lib/test/test_time.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_time.py 2 |
line wrap: on
line diff
--- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -384,7 +384,7 @@ class TimeTestCase(unittest.TestCase): t2 = time.monotonic() dt = t2 - t1 self.assertGreater(t2, t1)
self.assertAlmostEqual(dt, 0.5, delta=0.2)[](#l1.7)
self.assertTrue(0.5 <= dt <= 1.0, dt)[](#l1.8)
# monotonic() is a monotonic but non adjustable clock info = time.get_clock_info('monotonic')