From 170078804c6191eaeb6985a15a58d43ea673650e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 16 Dec 2013 22:36:50 +0100 Subject: Close #19999: tolerate coarse time when testing time.monotonic() on very busy/slow buildbot --- Lib/test/test_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 2997077..6b7a4fb 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -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) -- cgit v0.12