summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-03 21:07:37 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-03 21:07:37 (GMT)
commita9c99a61196742f7b2abd374f7490a20e4fba2db (patch)
treeaec00cf5e1bb25dac08cfd30993d7fb96bef8738 /Lib
parent330426cfe268a3ccaaf2baa20e0d1d37b0312c40 (diff)
downloadcpython-a9c99a61196742f7b2abd374f7490a20e4fba2db.zip
cpython-a9c99a61196742f7b2abd374f7490a20e4fba2db.tar.gz
cpython-a9c99a61196742f7b2abd374f7490a20e4fba2db.tar.bz2
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.py4
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)