diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-03 21:07:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-03 21:07:59 (GMT) |
commit | 7e71c5672cdd42d58ec4eb09fe6ca91616239f65 (patch) | |
tree | 281814ffad5125c8032627ffb0becdf4fd952d48 /Lib | |
parent | 647d1e1acd5e2b73e8e425df12dc8f2ba48e1583 (diff) | |
parent | a9c99a61196742f7b2abd374f7490a20e4fba2db (diff) | |
download | cpython-7e71c5672cdd42d58ec4eb09fe6ca91616239f65.zip cpython-7e71c5672cdd42d58ec4eb09fe6ca91616239f65.tar.gz cpython-7e71c5672cdd42d58ec4eb09fe6ca91616239f65.tar.bz2 |
(Merge 3.3) test_time.test_monotonic(): use a longer sleep to try to make the test more reliable
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_time.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 18e0568..faf9779 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -368,11 +368,11 @@ class TimeTestCase(unittest.TestCase): 'need time.monotonic') def test_monotonic(self): t1 = time.monotonic() - time.sleep(0.1) + time.sleep(0.5) t2 = time.monotonic() dt = t2 - t1 self.assertGreater(t2, t1) - self.assertAlmostEqual(dt, 0.1, delta=0.2) + self.assertAlmostEqual(dt, 0.5, delta=0.2) info = time.get_clock_info('monotonic') self.assertTrue(info.monotonic) |