diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-12-16 21:36:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-12-16 21:36:50 (GMT) |
commit | 170078804c6191eaeb6985a15a58d43ea673650e (patch) | |
tree | 7b2092f7821bce5880eb5f958e877bc09a69db99 | |
parent | de57074874931bafb5fc1a91cebfb636798b7228 (diff) | |
download | cpython-170078804c6191eaeb6985a15a58d43ea673650e.zip cpython-170078804c6191eaeb6985a15a58d43ea673650e.tar.gz cpython-170078804c6191eaeb6985a15a58d43ea673650e.tar.bz2 |
Close #19999: tolerate coarse time when testing time.monotonic() on very
busy/slow buildbot
-rw-r--r-- | Lib/test/test_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |