diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-12-16 21:38:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-12-16 21:38:46 (GMT) |
commit | a4275b276c14d0de21fb8e9210dcf302c6dd5fd8 (patch) | |
tree | 69828c5a77b1a38a41cdf388d14f4605bf46a018 /Lib/test/test_time.py | |
parent | 77f06111a0c3de8a77c6d96e57c3a1f6c8d8e09b (diff) | |
parent | 170078804c6191eaeb6985a15a58d43ea673650e (diff) | |
download | cpython-a4275b276c14d0de21fb8e9210dcf302c6dd5fd8.zip cpython-a4275b276c14d0de21fb8e9210dcf302c6dd5fd8.tar.gz cpython-a4275b276c14d0de21fb8e9210dcf302c6dd5fd8.tar.bz2 |
(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on
very busy/slow buildbot
Diffstat (limited to 'Lib/test/test_time.py')
-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 048cb3b..bc5f69e 100644 --- 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) + self.assertTrue(0.5 <= dt <= 1.0, dt) # monotonic() is a monotonic but non adjustable clock info = time.get_clock_info('monotonic') |